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 the benefit of using an enum rather than a #define constant?
Why is c so popular?
What do the functions atoi(), itoa() and gcvt() do?
What are the basic data types associated with c?
How #define works?
What language is c written?
What is const volatile variable in c?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
Explain why c is faster than c++?
diff between exptected result and requirement?
What is c variable?
Differentiate call by value and call by reference?
Do you know what are the properties of union in c?
How to throw some light on the b tree?
What is #include called?