Skip to content

Commit

Permalink
c.html.markdown: better wording about null statement
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
  • Loading branch information
sjrct and verhovsky committed May 22, 2024
1 parent ac2ada4 commit 35a319b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ int main (int argc, char** argv)
for (i = 0; i <= 5; i++) {
}
// Or
for (i = 0; i <= 5; i++); // use semicolon to act as the body (null statement)
for (i = 0; i <= 5; i++); // semicolon acts as the body (null statement)

// branching with multiple choices: switch()
switch (a) {
Expand Down

0 comments on commit 35a319b

Please sign in to comment.