Int a=3; Int b=2; b=a++; Cout<<++b; | SoloLearn: Learn to code for FREE!

0

Int a=3; Int b=2; b=a++; Cout<<++b;

c++

7/27/2017 2:29:03 AM

visa

4 Answers

New Answer

+11

int a=3; int b=2; b=a++;. //3 cout<<++b;. //4

+9

Remember that C++ is case sensitive - 'int' and 'cout' has to be in lowercase.

+2

the answer is 4. when the plus signs are in front of the variable things are done on the spot if after the variable ...addition is happening on the nezt line...so third line is like: b=a; a=a + 1; 4

+1

The answer is 4