summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'c.html.markdown')
-rw-r--r--c.html.markdown6
1 files changed, 6 insertions, 0 deletions
diff --git a/c.html.markdown b/c.html.markdown
index 869ab984..166c43e6 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -231,6 +231,12 @@ int main() {
printf("I print\n");
}
+ // Notes:
+ // Loops MUST always have a body. If no body is needed, do this:
+ for (i = 0; i <= 5; i++) {
+ ; // use semicolon to act as the body (null statement)
+ }
+
// While loops exist
int ii = 0;
while (ii < 10) {