diff options
author | mordner <matthias.ordner@web.de> | 2015-01-08 23:21:39 +0100 |
---|---|---|
committer | mordner <matthias.ordner@web.de> | 2015-01-08 23:24:19 +0100 |
commit | d1171443ddc0eda7cbabfc41d110a76a67e494ab (patch) | |
tree | cde78f75a2cc96a64715a7c2729accf5143573d5 /c.html.markdown | |
parent | 54c5dfb9c82eeca1c16ca2422c45f099be8f70a1 (diff) |
Fixed one line being cut off and a comment about the export attribute
was referring to the wrong function and variable.
Diffstat (limited to 'c.html.markdown')
-rw-r--r-- | c.html.markdown | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c.html.markdown b/c.html.markdown index b5b804af..7670824a 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -386,7 +386,8 @@ int main() { // or when it's the argument of the `sizeof` or `alignof` operator: int arraythethird[10]; int *ptr = arraythethird; // equivalent with int *ptr = &arr[0]; - printf("%zu, %zu\n", sizeof arraythethird, sizeof ptr); // probably prints "40, 4" or "40, 8" + printf("%zu, %zu\n", sizeof arraythethird, sizeof ptr); + // probably prints "40, 4" or "40, 8" // Pointers are incremented and decremented based on their type @@ -477,7 +478,7 @@ void testFunc() { } //make external variables private to source file with static: -static int j = 0; //other files using testFunc() cannot access variable i +static int j = 0; //other files using testFunc2() cannot access variable j void testFunc2() { extern int j; } |