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

I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2363


What is fflush() function?

1126


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1363


How to declare pointer variables?

1228


What is the difference between procedural and functional programming?

1068


State the difference between x3 and x[3].

1107


What is the heap?

1214


what type of questions arrive in interview over c programming?

2021


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

1489


What are conditional operators in C?

1087


What is the difference between variable declaration and variable definition in c?

1052


What is your stream meaning?

1223


Are comments included during the compilation stage and placed in the EXE file as well?

1072


Multiply an Integer Number by 2 Without Using Multiplication Operator

757


What are the types of functions in c?

976