mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
c: reorder paragraphs
content about `static` are inserted into the wrong place.
This commit is contained in:
parent
6dc9945697
commit
4c25ac36c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user