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
Where register variables are stored in c?
Is null valid for pointers to functions?
In which language linux is written?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
Explain how can a program be made to print the line number where an error occurs?
How can variables be characterized?
What is wrong with this statement? Myname = 'robin';
Differentiate between calloc and malloc.
What is a substring in c?
What are the parts of c program?
Explain how can type-insensitive macros be created?
Explain about the constants which help in debugging?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is gets() function?
Difference between malloc() and calloc() function?