Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (13 sloc) 283 Bytes
#include<stdio.h>
int main()
{
void print(int *,int *,int *,int *,int *);
static int arr[]={97,98,99,100,101,102,103,104};
int *ptr=arr+1;
print(++ptr,ptr--,ptr,ptr++,ptr);
return 0;
}
void print(int *a,int *b,int *c,int *d,int *e)
{
printf("%d\t%d\t%d\t%d\t%d\n",*a,*b,*c,*d,*e);
}