0
What is the output of the code?
int b=5; int a=++b; cout<<a+b ;
6 Answers
+ 3
syntax error
but once you fix that, its
12
+ 3
đđ Syntex error
+ 1
Error in Compilation!!
+ 1
The answer is supposed to be 12 as it is a prefix operator,the value of b is incremented by 1 which is stored in a as well , so if should be 6+6=12
0
see question is edited.