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 is a null string in c?

988


c program for searching a student details among 10 student details

2041


When is the “void” keyword used in a function?

1428


Explain about the constants which help in debugging?

1309


What is #include called?

995


State two uses of pointers in C?

1009


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

1044


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

3004


What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

1227


What are the different types of linkage exist in c?

971


What is function prototype in c with example?

1003


What is the process to create increment and decrement stamen in c?

992


Why is c called a mid-level programming language?

1152


What is structure padding in c?

1058


How will you write a code for accessing the length of an array without assigning it to another variable?

1000