HTML Tutorial || Networking Assignment || Computer Full Forms || Ms-Office Shortcut Keys || Ms-Office Notes || Number System Notes || Internet Assignment
JavaScript Tutorial || CSS Tutorial || Operating System Notes || History of Computer Assignment || Netwoking Notes || Computer Fundamentals Notes

C program to Input an Array of n Elements & Print the Reverse of all Elements ?


Q:- Write a C program to Input  an Array of n Elements & Print the Reverse of all
       Elements ?
            #include<stdio.h>
            #include<conio.h>
            main()
     {
int a[100],num,i,j;
clrscr();
printf(“Enter Limit of Array =”);
scanf(“%d”,&a[i]);
printf(“Enter Array Elements\n”);
for(i=0;i<num;i++)
{
scanf(“%d”,&a[i]);
}
printf(“\n Reverse of all Array Elmeents \n”);
for(i=num-1;i>=0;i--)
printf(“%d\n”,a[i]);
getch();
      }