i just wanted to make a program which reads 5 numbers then writes this 5 number. that's it but
i couldn't. something's wrong and i couldnt find what is it.
#include <stdio.h>
void fun1(void)
{
int a=0,b=5,c=0;
int d[5];
for(a=0;a<b;a++)
{
printf("%d\n",d[a]);
}
}
int main()
{
printf("enter 5 numbers");
int a,b=5,c=0;
int d[5];
for(a=0;a<b;a++)
{
scanf("%d",&d[a]);
}
fun1();
return 0;
}