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
Does c have function or method?
Are pointers integers in c?
What is the explanation for modular programming?
Explain spaghetti programming?
What is #include stdio h and #include conio h?
What does it mean when a pointer is used in an if statement?
Is c dynamically typed?
Why main function is special give two reasons?
What is merge sort in c?
How can I delete a file?
How can a program be made to print the line number where an error occurs?
How can I split up a string into whitespace-separated fields?
What does c mean?
Write a program to show the change in position of a cursor using c
Is that possible to add pointers to each other?