+ 1
What is the output?
int a=3 int b=2 b=a++ cout<<++b
6 Answers
+ 8
Semicolons are missing. If this error is fixed, answer should be 4.
b = a++;
// a = 4, b = 3 (post-increment issue)
cout << ++b;
// prints 4
You can get clearer idea by searching for "pre-increment and post-increment" on Google or SL.
0
5
0
bro that's wrong
0
ok so whats the correct ans.
0
@shobhit I am asking ,how could I know
0
5