/* PROGRAM TO TRANSFER AN ELEMENT BY PASSING ADDRESS OF INDIVIDUAL ARRAY ELEMENT TO FUN*/

 

void fun(int *);

void main()

{

int a[5]={1,2,3,4,5},i;

clrscr();

 

for(i=0;i<5;i++)

{

fun(&a[i]);

}

getch();

}

 

void fun(int *x)

{

printf(“\t%d”,*x);

}

155 total views, 2 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.