diff options
author | Adam Bard <github@adambard.com> | 2013-06-28 14:17:55 -0700 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2013-06-28 14:17:55 -0700 |
commit | 0c0117a1386c5513ee46ad2edfebd64fe7d25c5b (patch) | |
tree | 32c79a171e5230995317bfaee2f9d79a4b9951d4 /c.html.markdown | |
parent | 63b8f04c57790ef6be4ab4a58c2473b600007a05 (diff) | |
parent | 8167fcd1876f5497838aa814f36daaeeb569f7a2 (diff) |
Merge pull request #20 from mlloreda/patch-2
Fixed misspellings
Diffstat (limited to 'c.html.markdown')
-rw-r--r-- | c.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c.html.markdown b/c.html.markdown index 73b60f75..15bfa05e 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -198,7 +198,7 @@ printf("%d\n", (short) 65537); // => 1 (Max short = 65535) // then mess with them. int x = 0; -printf("%p\n", &x); // Use & to retrive the address of a variable +printf("%p\n", &x); // Use & to retrieve the address of a variable // (%p formats a pointer) // => Prints some address in memory; @@ -222,7 +222,7 @@ printf("%d\n", *(x_ptr + 1)); // => Prints 19 printf("%d\n", x_array[1]); // => Prints 19 // Array indexes are such a thin wrapper around pointer -// arithmatic that the following works: +// arithmetic that the following works: printf("%d\n", 0[x_array]); // => Prints 20; printf("%d\n", 2[x_array]); // => Prints 18; |