Computer Science, asked by fiddelkshetri505, 6 months ago

6. What will be the output for the following C++ program?
#include<iostream.h>
void main()
{
int a, b= 10;
a= b + b++ + +b;
cout<<"a="<<a;​

Answers

Answered by rutuparnap158
0

Explanation:

1st b= 10

b++ means b assign to b then incremented by 1.

That is 11.

++b means 1st incremented by 1 then assign to b.

That is 12.

a=10+10+12

=32

Similar questions