/*PROGRAM TO TRANSFER AN INDIVIDUAL ELEMENT TO A FUNCTION*/

 

#include<stdio.h>

#include<conio.h>

void fun(int x)

{

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

}

 

 

void main()

{

int a[5],i;

clrscr();

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

{

printf(“Enter a[%d]= “,i);

scanf(“%d”,&a[i]);

}

 

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

{

fun(a[i]);

}
getch();

}

195 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.