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
What is use of integral promotions in c?
What is dynamic memory allocation?
What is the difference between procedural and declarative language?
how could explain about job profile
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Write a program which returns the first non repetitive character in the string?
What is wrong with this program statement?
What is the difference between void main and main in c?
Write a program to reverse a given number in c language?
What does *p++ do? What does it point to?
What are near, far and huge pointers?
What are the primitive data types in c?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What is the significance of scope resolution operator?
What is a volatile keyword in c?