if a=1 initially then find the value of 'b' where b = (++a)+(++a)+(a++)+a
Answers
Answered by
3
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
1
After Execution:
b = 12
Explanation:
> b = (++a) + (++a) + (a++) + a
> b = (2) + (3) + (3) + 4
> b = 2 + 10
> b = 12
Similar questions
Math,
3 months ago
Math,
3 months ago
Social Sciences,
3 months ago
Physics,
11 months ago
Geography,
11 months ago