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
Explain About fork()?
What are the different data types in C?
how can use subset in c program and give more example
What is use of null pointer in c?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is structure data type in c?
Write a program to print “hello world” without using semicolon?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What are integer variable, floating-point variable and character variable?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is a pointer on a pointer in c programming language?
Why we use break in c?
What Is The Difference Between Null And Void Pointer?
Why is main function so important?
How will you declare an array of three function pointers where each function receives two ints and returns a float?