summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2014-12-08 13:56:33 +0100
committerven <vendethiel@hotmail.fr>2014-12-08 13:56:33 +0100
commit0f1fac6ffd14fdd6dd168099a44711328cfa9d23 (patch)
tree1d30cc1e224dbabd03b70946a76813a16bc38796
parent0654fc418db0b4ae1702b6f7eaf0cd3d62d8469a (diff)
parent8291fb2d7d376186a19e643e92aacb9ed9412395 (diff)
Merge pull request #883 from switchhax/patch-1
Update c.html.markdown
-rw-r--r--c.html.markdown9
1 files changed, 5 insertions, 4 deletions
diff --git a/c.html.markdown b/c.html.markdown
index f44da38e..b5b804af 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -26,13 +26,15 @@ Multi-line comments look like this. They work in C89 as well.
Multi-line comments don't nest /* Be careful */ // comment ends on this line...
*/ // ...not this one!
- // Constants: #define <keyword>
+// Constants: #define <keyword>
#define DAYS_IN_YEAR 365
- // Enumeration constants are also ways to declare constants.
- enum days {SUN = 1, MON, TUE, WED, THU, FRI, SAT};
+// Enumeration constants are also ways to declare constants.
+// All statements must end with a semicolon
+enum days {SUN = 1, MON, TUE, WED, THU, FRI, SAT};
// MON gets 2 automatically, TUE gets 3, etc.
+
// Import headers with #include
#include <stdlib.h>
#include <stdio.h>
@@ -57,7 +59,6 @@ int main() {
// print output using printf, for "print formatted"
// %d is an integer, \n is a newline
printf("%d\n", 0); // => Prints 0
- // All statements must end with a semicolon
///////////////////////////////////////
// Types