write a program to display the array elements in reverse
order in c language
Answer Posted / dally
#include<stdio.h>
int main()
{
int a[]={1,2,3,7,8};
int count=0,i;
while(a[i] != '\0')
{
count++;
}
for(i=count;i>=1;i--)
{
printf("%d",a[i]);
}
}
| Is This Answer Correct ? | 52 Yes | 48 No |
Post New Answer View All Answers
What is volatile variable how do you declare it?
what is the basis for selection of arrays or pointers as data structure in a program
What does the c in ctime mean?
What is the g value paradox?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What are the data types present in c?
How can I change their mode to binary?
What is function definition in c?
What is ambagious result in C? explain with an example.
Why c language?
Explain about C function prototype?
Who developed c language?
Why is c still so popular?
Explain about block scope in c?
What is the difference between class and object in c?