In C language, a += 1 is equivalent to a = a + 1, but is different from a++. Although all three ultimately increase a by one, a += 1 and a = a + 1 evaluate to the value after adding one, and a++ evaluates to the value before adding one. Let me first explain what += and ++ mean. += means that after adding the lvalue and rvalue, the result is assigned to the lvalue such as a=1;b=2;a+=b;, a=3;b=2. ++ means that the variable increases by 1, such as a=1;a++; the value of a is 2. In c, ++ has a prefix.
24Hour Walgreens Locations at vanjuliusblog Blog