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
What is union and structure in c?
What is conio h in c?
What is the use of header?
What is malloc and calloc?
What is use of pointer?
Explain how can I convert a number to a string?
Write a program of prime number using recursion.
What are c header files?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is meant by type casting?
What are pointers? What are different types of pointers?
Is exit(status) truly equivalent to returning the same status from main?
Why is c called "mother" language?
What is the difference between a free-standing and a hosted environment?
find the sum of two matrices and WAP for it.