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 / 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


Please Help Members By Posting Answers For Below Questions

What is volatile variable how do you declare it?

1024


what is the basis for selection of arrays or pointers as data structure in a program

4248


What does the c in ctime mean?

1014


What is the g value paradox?

1103


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1224


What are the data types present in c?

1088


How can I change their mode to binary?

1050


What is function definition in c?

1016


What is ambagious result in C? explain with an example.

2550


Why c language?

1005


Explain about C function prototype?

1025


Who developed c language?

1036


Why is c still so popular?

1003


Explain about block scope in c?

1030


What is the difference between class and object in c?

1085