0
If b=a++?
umm whats the answer of cout<<++b<<endl;
4 ответов
+ 3
a+1
0
Isn't it a+2? b=a++ is interpreted b = a+1 and ++b= a+1+1=a+2. I didn't have a single doubt about these things, until now...
0
a++ only gets increment after it encounters a semicolon unlike ++a, which happens on spot..so initially b=a, then ++b makes it a+1
- 1
a+1
1