Add to notes on increment and decrement operators.

This commit is contained in:
Levi Bostian 2013-09-20 22:31:04 -05:00
parent ec7ee88698
commit 868be425a6

View File

@ -205,8 +205,11 @@ int main() {
z = (a > b) ? a : b; // => 10 "if a > b return a, else return b." z = (a > b) ? a : b; // => 10 "if a > b return a, else return b."
//Increment and decrement operators: //Increment and decrement operators:
s[j++]; //returns value of j to s THEN increments value of j. char *s = "iLoveC"
s[++j]; //increments value of j THEN returns value of j to s. 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 // same with j-- and --j
// Bitwise operators! // Bitwise operators!