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

write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2136


Compare interpreters and compilers.

1065


What is string in c language?

1161


How to throw some light on the b tree?

1087


What is include directive in c?

1158


What is function in c with example?

1157


Write a code to generate divisors of an integer?

1069


What is the purpose of scanf() and printf() functions?

1243


What is difference between far and near pointers?

1042


Is that possible to store 32768 in an int data type variable?

1080


How can you determine the size of an allocated portion of memory?

1304


What is scanf_s in c?

1125


What is the purpose of macro in C language?

1124


what is a function method?give example?

2368


write a program to generate address labels using structures?

4576