summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2013-09-01 10:44:55 -0500
committerLevi Bostian <levi.bostian@gmail.com>2013-09-01 10:44:55 -0500
commit642e7c551e0f6292be403ed893a6695130cf350a (patch)
treea9d82c5a9e6f9ad6de0dda5547127077d0a4a63a
parente9c92321f4442ca4af75f6cce16d435287dad750 (diff)
Add note to while loop in C.
-rw-r--r--c.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/c.html.markdown b/c.html.markdown
index 6d95f28b..f63adc05 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -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, "