summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
diff options
context:
space:
mode:
authoriirelu <totallymyrealemail@hush.ai>2014-07-17 17:08:30 +0100
committeriirelu <totallymyrealemail@hush.ai>2014-07-17 17:08:30 +0100
commit50fe4d985952e6fd978df7a97e491cb0456fe11c (patch)
treeff6d5f9b99886fec0a2ac3a86389970c1fe755bc /c.html.markdown
parent68c477ff9d311350e8d8f48323383b4ac0063dc3 (diff)
Commented out two broken lines in learnc.c
Diffstat (limited to 'c.html.markdown')
-rw-r--r--c.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/c.html.markdown b/c.html.markdown
index bc9a959a..b0c77e16 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -281,10 +281,10 @@ int main() {
// branching with multiple choices: switch()
switch (a) {
case 0: // labels need to be integral *constant* expressions
- do_stuff();
+ //do_stuff();
break; // if you don't break, control flow falls over labels
case 1:
- do_something_else();
+ //do_something_else();
break;
default:
// if `some_integral_expression` didn't match any of the labels