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 is a null string in c?
c program for searching a student details among 10 student details
When is the “void” keyword used in a function?
Explain about the constants which help in debugging?
What is #include called?
State two uses of pointers in C?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What are the different types of linkage exist in c?
What is function prototype in c with example?
What is the process to create increment and decrement stamen in c?
Why is c called a mid-level programming language?
What is structure padding in c?
How will you write a code for accessing the length of an array without assigning it to another variable?