takes only one input

main()
{ int i; char c;
for (i=0;i<5;i++) {
scanf("%d",&c);
printf("%d",c); } }
Why the program scans only 1 time if you give an alphabet as an input??
Last edited on
srry, but i didn't get the reason till now...
Topic archived. No new replies allowed.