Add note to while loop in C.

This commit is contained in:
Levi Bostian 2013-09-01 10:44:55 -05:00
parent e9c92321f4
commit 642e7c551e

View File

@ -260,7 +260,7 @@ int main() {
// While loops exist
int ii = 0;
while (ii < 10) {
while (ii < 10) { //ANY value not zero is true.
printf("%d, ", ii++); // ii++ increments ii in-place
// after yielding its value ("postincrement").
} // => prints "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "