0

what does a++ means

it is given a is 3 and b is 2 so b=a++ gives what??

12th Jul 2016, 5:23 PM
Somyaditta Ghosh
Somyaditta Ghosh - avatar
9 ответов
+ 1
2
12th Jul 2016, 6:02 PM
Äákàsh Páñtà
Äákàsh Páñtà - avatar
+ 1
in your case it's a postfix meaning the increment operation will me performed when the assignment operation is finished
12th Jul 2016, 8:18 PM
Vedant Patadia
Vedant Patadia - avatar
+ 1
In simple words, first the value, I.e., 3 of a will be assigned to b and then 1 will be added to a hence b will hold the value of 3 and a will have 4
12th Jul 2016, 8:19 PM
Vedant Patadia
Vedant Patadia - avatar
0
a++ means a=a+1
12th Jul 2016, 5:56 PM
meherDev
meherDev - avatar
0
what is answer of this question
12th Jul 2016, 6:02 PM
Äákàsh Páñtà
Äákàsh Páñtà - avatar
0
is this true
12th Jul 2016, 6:03 PM
Äákàsh Páñtà
Äákàsh Páñtà - avatar
0
b=A++. (A++=a=a+1) 2=a(a+1) 2=4a a=2
12th Jul 2016, 6:05 PM
Äákàsh Páñtà
Äákàsh Páñtà - avatar
0
and ans is b=a++=3
12th Jul 2016, 8:28 PM
meherDev
meherDev - avatar
0
there are two meaning in post-increment or pre-incremet if the letter is like this a++ or i letter is like this ++a
13th Jul 2016, 5:07 AM
Rafael Marroquin
Rafael Marroquin - avatar