diff options
| author | Levi Bostian <levi.bostian@gmail.com> | 2013-09-20 22:31:04 -0500 | 
|---|---|---|
| committer | Levi Bostian <levi.bostian@gmail.com> | 2013-09-20 22:31:04 -0500 | 
| commit | 868be425a6602020f275404a8776d48f3d6d2715 (patch) | |
| tree | 13461f273233c48a4f2293662dcf26fd81d76b65 /c.html.markdown | |
| parent | ec7ee88698bf32bfe6e931865e94d2dac8f41c80 (diff) | |
Add to notes on increment and decrement operators.
Diffstat (limited to 'c.html.markdown')
| -rw-r--r-- | c.html.markdown | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/c.html.markdown b/c.html.markdown index f1e328cf..f67f6c4a 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -205,8 +205,11 @@ int main() {      z = (a > b) ? a : b; // => 10 "if a > b return a, else return b."       //Increment and decrement operators: -    s[j++]; //returns value of j to s THEN increments value of j.  -    s[++j]; //increments value of j THEN returns value of j to s.  +    char *s = "iLoveC" +    int j = 0; +    s[j++]; // => "i" Returns value of j to s THEN increments value of j. +    j = 0;  +    s[++j]; // => "L" Increments value of j THEN returns value of j to s.       // same with j-- and --j      // Bitwise operators! | 
