Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the different types of endless loops?

1038


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1442


What are the types of unary operators?

1149


What is data structure in c language?

1075


Can a pointer be volatile in c?

950


Who invented bcpl language?

1134


How is a pointer variable declared?

1036


write a programming in c to find the sum of all elements in an array through function.

2133


Why is void main used?

1045


What is hash table in c?

985


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1661


Explain what are linked list?

1005


What is a char c?

1003


What are global variables?

1131


What is c mainly used for?

1008