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 use of #define preprocessor in c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
application attempts to perform an operation?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Where are the auto variables stored?
Is a house a mass structure?
What the different types of arrays in c?
Define and explain about ! Operator?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Explain b+ tree?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
How can a program be made to print the name of a source file where an error occurs?
Explain what is the general form of a c program?
What is && in c programming?