If i have an unknown constant that the user must input in the do portion of the do-while loop, do i have to define the constant in the DO statement like
[/code]
do {
int c;
c = getchar()
}
[code]
or can the information come before the DO
If i have an unknown constant that the user must input in the do portion of the do-while loop, do i have to define the constant in the DO statement like
[/code]
do {
int c;
c = getchar()
}
[code]
or can the information come before the DO
If you need to use a variable outside of a statement block, you need to declare it outside of the statement block.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*