diff options
author | Jakukyo Friel <weakish@gmail.com> | 2014-02-14 17:22:38 +0800 |
---|---|---|
committer | Jakukyo Friel <weakish@gmail.com> | 2014-02-14 17:22:38 +0800 |
commit | 4c25ac36c669ef0c65938d329a7d3baff6a756dd (patch) | |
tree | eb40b6cf5dab0ca2e7f8aa030d872c068cdf3eb6 /c.html.markdown | |
parent | 6dc9945697c5d634cd108a0e95038d2707166279 (diff) |
c: reorder paragraphs
content about `static` are inserted into the wrong place.
Diffstat (limited to 'c.html.markdown')
-rw-r--r-- | c.html.markdown | 12 |
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 |