hey guys i'm new to c and still learning.need some help here.
i wrote this code and it isn't work properly,unable to figure out whats wrong!!but when the strget() call from the main() its working.please some help...
main()
{
int x;
printf("enter a value :");
scanf("%d",&x);
switch(x)
{
case 1:
pri();
}
}
void strget()
{
int i;
char z[30];
for(i=0;i<4;i++)
{
printf("enter string:");
gets(z);
}
}