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
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is fflush() function?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
How to declare pointer variables?
What is the difference between procedural and functional programming?
State the difference between x3 and x[3].
What is the heap?
what type of questions arrive in interview over c programming?
When is the “void” keyword used in a function?
What are conditional operators in C?
What is the difference between variable declaration and variable definition in c?
What is your stream meaning?
Are comments included during the compilation stage and placed in the EXE file as well?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What are the types of functions in c?