Computer Science, asked by Vishwasmani, 6 months ago

if a=1 initially then find the value of 'b' where b = (++a)+(++a)+(a++)+a​

Answers

Answered by anindyaadhikari13
3

\star\:\:\:\sf\large\underline\blue{Answer:-}

Given, a=1;

b=(++a) +(++a) +(a++)+a;

Or,

b=2 + 3 + 3 + 4

Or, b=12

Hence, the value of b is 12.

Answered by Oreki
1

After Execution:

b = 12

Explanation:

> b = (++a) + (++a) + (a++) + a

> b = (2) + (3) + (3) + 4

> b = 2 + 10

> b = 12

Similar questions