Home » NO IDEA » Printing the Array in Reverse Order

Printing the Array in Reverse Order

Blog Stats

  • 13,912 hits
December 2013
M T W T F S S
« Oct   Jan »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

/*Develop a ‘C’ program a ‘C’ program to read in an array of ‘N’ integers and print
its elements in reverse order*/

#include<stdio.h>
#define n 5 // give the value of n here
int main()
{

	int a[n],i;
	printf("\n Enter the array element\n");
	for(i=0;i=0;i--)
	{
		printf("%d\n",a[i]);
	}
	return 0;
}
Advertisements

1 Comment

  1. […] write a  c program to read in an array of ‘N’ integers and print  its elements in reverse orde… […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: