+ 1
what is the ans of this???
int a=1; int b=2; c=++b; cout<<c; cout<<c+b;
2 Respostas
+ 10
++b increments b by 1 making it 3. And then, b is assigned to c, so c as well becomes 3 and hence the output is 3 and 6.
Note : You didn't declare the data type to the variable c, so there are exceptions.
+ 5
Output is
36