summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
diff options
context:
space:
mode:
authorElton Viana <eltonvs@outlook.com>2015-10-14 21:44:42 -0300
committerElton Viana <eltonvs@outlook.com>2015-10-14 21:44:42 -0300
commit328ceb1a94f0fc6736e001ad0e7b6646173ca207 (patch)
tree6967303a3e3a35e245e5cb4b2a72ff425d51f5bc /c.html.markdown
parenta62d99a393b583ffe480c057aa1578d0b137d775 (diff)
Some extra information
Diffstat (limited to 'c.html.markdown')
-rw-r--r--c.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/c.html.markdown b/c.html.markdown
index db2ac930..aaf176c1 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -221,7 +221,7 @@ int main(void) {
0 || 1; // => 1 (Logical or)
0 || 0; // => 0
- // Conditional expression ( ? : )
+ // Conditional ternary expression ( ? : )
int e = 5;
int f = 10;
int z;
@@ -291,6 +291,8 @@ int main(void) {
for (i = 0; i <= 5; i++) {
; // use semicolon to act as the body (null statement)
}
+ // Or
+ for (i = 0; i <= 5; i++);
// branching with multiple choices: switch()
switch (a) {