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 / siraj-ud-doulla

#include<stdio.h>

int main()
{
int n,i;
printf("How many number you get \n:");
scanf("%d",&n);
int arr[n];
printf("You need %d numbers\n",n);
for(i=0;i<n;i++){
scanf("%d",&arr[i]);
}
printf("Revarse number is:\n");
for(i=n-1;i>=0;i--){
printf("%d\n",arr[i]);
}
return 0;

}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you mix old-style and new-style function syntax?

1039


What is meant by inheritance?

1045


What is c value paradox explain?

1014


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1098


Lists the benefits of c programming language?

1063


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1083


What are keywords c?

978


Which is the memory area not included in C program? give the reason

1893


What is scope rule of function in c?

1024


Explain what is the general form of a c program?

1014


How can I find out the size of a file, prior to reading it in?

1096


What is the ANSI C Standard?

1206


Explain how can I convert a string to a number?

1022


swap 2 numbers without using third variable?

1076


Why static is used in c?

1026