summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichal Jurosz <mj@mj41.cz>2016-05-12 10:15:30 +0200
committerven <vendethiel@hotmail.fr>2016-05-12 10:15:30 +0200
commit02db6f2bfcb8371a29a708ca425f8785615da969 (patch)
treefb91be5efaf01f18e5cb7f51b23675d257aba2fa
parente0c220a717b0402c4cc3ed22bb7402b62632c13b (diff)
Fix c - the first character of ILoveC is I not i (#2253)
-rw-r--r--c.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/c.html.markdown b/c.html.markdown
index 2fad5348..babf0954 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -238,7 +238,7 @@ int main (int argc, char** argv)
// Increment and decrement operators:
char *s = "ILoveC";
int j = 0;
- s[j++]; // => "i". Returns the j-th item of s THEN increments value of j.
+ s[j++]; // => "I". Returns the j-th item of s THEN increments value of j.
j = 0;
s[++j]; // => "L". Increments value of j THEN returns j-th value of s.
// same with j-- and --j
@@ -779,4 +779,4 @@ Readable code is better than clever code and fast code. For a good, sane coding
Other than that, Google is your friend.
-[1] http://stackoverflow.com/questions/119123/why-isnt-sizeof-for-a-struct-equal-to-the-sum-of-sizeof-of-each-member \ No newline at end of file
+[1] http://stackoverflow.com/questions/119123/why-isnt-sizeof-for-a-struct-equal-to-the-sum-of-sizeof-of-each-member