write a program to display the array elements in reverse
order in c language
Answer Posted / tej
#include<stdio.h>
#include<conio.h>
void main()
{
int a[],n;
printf("enter array size");
scanf("%d",&n);
printf("enter elements of an array");
for(i=0;i<n;i++)
{
scanf("%d",a[i]);
}
for(i=1;i<=n;i++)
{
printf("%d",a[n-i]);
}
getch();
}
| Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What is the difference between formatted&unformatted i/o functions?
What is int main () in c?
What are data structures in c and how to use them?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is assignment operator?
What is the modulus operator?
How can a string be converted to a number?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Explain what is meant by 'bit masking'?
What are the types of operators in c?
How can you avoid including a header more than once?
Explain how can I read and write comma-delimited text?
What is graph in c?
What is structure of c program?