Problem : Take 10 Number as input, print 5th Number in another function
#include<stdio.h>
#include<conio.h>
#define n 10
void sum(int a);
/* prototype function */ void main(void)
{
clrscr();
int i,A[n];
printf(“\nEnter Number:…”);
for(i=1;i
sum(A[5]); /*call function & print 5th number */
getch();
}
void sum(int a)
{
printf(“\nResult:%d”,a);
}