Friday, April 17, 2009

PREV

#include
#include
//int n;
void main()
{
int rev(int *,int);
int i,n,a[20];
clrscr();
printf("enter n value:");
scanf("%d",&n);
for(i=0;iscanf("%d",&a[i]);
rev(&a[i],n);
}
rev(int *a,int n)
{
int i;
for(i=0;i{
printf("\n a[%d]=%d",n,*a);
}
return(NULL);
}

No comments: