write a program to display the array elements in reverse
order in c language
Answer Posted / dally
#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 ? | 52 Yes | 48 No |
Post New Answer View All Answers
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Which is better between malloc and calloc?
Is file a keyword in c?
What is define directive?
What is the main difference between calloc () and malloc ()?
Why is c not oop?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What is a stream in c programming?
Is c++ based on c?
Why are algorithms important in c program?
In a switch statement, what will happen if a break statement is omitted?
Is register a keyword in c?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What does c in a circle mean?
What is an operator?