summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNami-Doc <vendethiel@hotmail.fr>2014-02-14 10:25:39 +0100
committerNami-Doc <vendethiel@hotmail.fr>2014-02-14 10:25:39 +0100
commit5c60b4881d4a3970a04c754616c6771a27affe8a (patch)
treeeb40b6cf5dab0ca2e7f8aa030d872c068cdf3eb6
parent6dc9945697c5d634cd108a0e95038d2707166279 (diff)
parent4c25ac36c669ef0c65938d329a7d3baff6a756dd (diff)
Merge pull request #527 from weakish/patch-7
c: reorder paragraphs
-rw-r--r--c.html.markdown12
1 files changed, 7 insertions, 5 deletions
diff --git a/c.html.markdown b/c.html.markdown
index e55ff148..d7c682ad 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -454,6 +454,12 @@ void str_reverse(char *str_in)
}
}
+/*
+char c[] = "This is a test.";
+str_reverse(c);
+printf("%s\n", c); // => ".tset a si sihT"
+*/
+
//if referring to external variables outside function, must use extern keyword.
int i = 0;
void testFunc() {
@@ -467,11 +473,7 @@ void testFunc() {
}
//**You may also declare functions as static to make them private**
-/*
-char c[] = "This is a test.";
-str_reverse(c);
-printf("%s\n", c); // => ".tset a si sihT"
-*/
+
///////////////////////////////////////
// User-defined types and structs