[ad_1]
You should have
scanf("%d",&ch);
not
scanf("%d",ch);
Because the result of scanf gets stored in the variable named ch.
[ad_2]
solved Why does this C function not return an integer value?
[ad_1]
You should have
scanf("%d",&ch);
not
scanf("%d",ch);
Because the result of scanf gets stored in the variable named ch.
[ad_2]
solved Why does this C function not return an integer value?