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
What are the different types of endless loops?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What are the types of unary operators?
What is data structure in c language?
Can a pointer be volatile in c?
Who invented bcpl language?
How is a pointer variable declared?
write a programming in c to find the sum of all elements in an array through function.
Why is void main used?
What is hash table in c?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Explain what are linked list?
What is a char c?
What are global variables?
What is c mainly used for?