C PROGRAM TO PRINT THE ELEMENTS OF ARRAY IN REVERSE ORDER
#include<stdio.h> #define MAX 25 //maximum size of array is 25 main() { int i,n,arr[MAX]; printf(" *** C PROGRAMS BLOG ***"); printf("\n >>> Program to Print the element of array in Reverse Order<<<"); printf("\n\n Enter the size of array: "); scanf("%d",&n); //taking size of array as input from user printf("\n Enter the %d elements of array: \n",n); //taking input all the elements of array using for loop for(i=0;i<n;i++) { printf("\n arr[%d]:",i+1); scanf("%d",&arr[i]); } printf("\n The Elements of Array in Reverse order are : \n"); //Printing the elements of array in reverse order for(i=n-1;i>=0;i--) { printf(" %d ",arr[i]); } getch(); }
Sample Output :
Hi, Nice C program to print the elements of array in reverse order.Thanks, its really helped me......
ReplyDelete-Aparna
Theosoft
Find the all solutions and tutorials of "c programming" follow this link http://www.cprogramming-bd.com/c_page.aspx
ReplyDeleteGood
ReplyDeleteHere is a link for C/C++ programs and pointer programs. This may be useful for you.
C/C++ Programs
thanks for creating a nice post on c programming but did you know what is conditional statement in c programming
ReplyDeletehi welcome to this blog.its really informative blog.thank you for sharing this blog.
ReplyDeletec programming training
Thanks for sharing your experience. Very helpful for learners. c programming classes in pune
ReplyDeleteIt is told that c programming is the mother of all languages. c programming is used in most of the important sectors. All the operators are made by c programming . So, it is very important to learn c programming .
ReplyDeleteIn my website c programming is taught in very easy way. You will get videos too in my website ltslearn.com.
It is told that c programming is the mother of all languages. c programming is used in most of the important sectors. All the operators are made by c programming . So, it is very important to learn c programming .
ReplyDeleteIn my website c programming is taught in very easy way. You will get videos too in my website ltslearn.com.
Nice post...Thanks for code
ReplyDeletelove calculator program in c
C Program to Calculate Permutation and Combination
C Solved Programs
Data Structures Tutorial
Nice post
ReplyDeleteuses of c programming
Very informative blog!
ReplyDeletePlease take some time to visit my blog @
loop in C notes
Thanks!
This comment has been removed by the author.
ReplyDeleteMore programming question
ReplyDeleteNice and helpful article...
ReplyDeleteC Arrays examples
Loops in C examples
if-else in C with examples