write a program to display the array elements in reverse
order in c language
Answer Posted / pandia
#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 ? | 33 Yes | 28 No |
Post New Answer View All Answers
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Compare interpreters and compilers.
What is string in c language?
How to throw some light on the b tree?
What is include directive in c?
What is function in c with example?
Write a code to generate divisors of an integer?
What is the purpose of scanf() and printf() functions?
What is difference between far and near pointers?
Is that possible to store 32768 in an int data type variable?
How can you determine the size of an allocated portion of memory?
What is scanf_s in c?
What is the purpose of macro in C language?
what is a function method?give example?
write a program to generate address labels using structures?