write a program to display the array elements in reverse
order in c language
Answer Posted / pandia
#include<stdio.h>
int main()
{
int a[]={1,2,3,7,8};
int count=0,i;
while(a[i] != '\0')
{
count++;
}
for(i=count;i>=1;i--)
{
printf("%d",a[i]);
}
}
| Is This Answer Correct ? | 33 Yes | 28 No |
Post New Answer View All Answers
Explain how do you determine a file’s attributes?
Is it better to use malloc() or calloc()?
Is fortran faster than c?
By using C language input a date into it and if it is right?
What is a lookup table in c?
What are Macros? What are its advantages and disadvantages?
Why pointers are used in c?
What does do in c?
What is the difference between break and continue?
What is structure padding and packing in c?
What is null pointer in c?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Can main () be called recursively?
What are the disadvantages of c language?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me