Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program to display the array elements in reverse
order in c language

Answer Posted / vishnu948923

void main()
{
int a[10],i,n;
printf("enter howmany elements");
scanf("%d",&n);

for(i=0;i<=n;i++)
scanf("%d",&a[i]);

for(i=n;i>=0;i--)
printf("%d",a[i]);

}

Is This Answer Correct ?    258 Yes 125 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c have function or method?

959


Are pointers integers in c?

1042


What is the explanation for modular programming?

1168


Explain spaghetti programming?

1212


What is #include stdio h and #include conio h?

1066


What does it mean when a pointer is used in an if statement?

1074


Is c dynamically typed?

1115


Why main function is special give two reasons?

1506


What is merge sort in c?

1014


How can I delete a file?

1032


How can a program be made to print the line number where an error occurs?

1051


How can I split up a string into whitespace-separated fields?

1026


What does c mean?

1000


Write a program to show the change in position of a cursor using c

1015


Is that possible to add pointers to each other?

1338