G
Guest
In Stephen G. Kochan's book "Programming in C" there is a program with the
following:
for(i = 1; i <= numOfGrades; ++i) {
printf("Enter grade #%i: ", i);
scanf("i%", &grade);
...
}
Does the scanf command pause the loop until the user input is received?
When I run this program the loop keeps on going without pausing for the
user input.
What is going on here? Can anyone please help me?
JoshO.
following:
for(i = 1; i <= numOfGrades; ++i) {
printf("Enter grade #%i: ", i);
scanf("i%", &grade);
...
}
Does the scanf command pause the loop until the user input is received?
When I run this program the loop keeps on going without pausing for the
user input.
What is going on here? Can anyone please help me?
JoshO.