Computer Science, asked by gurkaur22, 1 month ago

if a=10 and b=20 : what will be the result of : (++a+b+a++ + b--)​

Answers

Answered by shubham11112005
1

Answer:

-60 is the answer

Explanation:

hope this answers is useful to you

Answered by padmavathimantrala
1

EXPLANATION:

1. (a,b) = -10, 20

2. (a,b) = 0.5, 20

3. (a,b) = 200, 20

4. (a,b) = 30, 20

For the option a:

The option can be expanded into

a-=b = (a = a – b); a = 10; b = 20

Therefore, the real value of a = -10 and b = 20

For the option b:

The option can be expanded into

a/=b = (a = a / b); a = 10; b = 20

Therefore, the real value of a = 0.5 and b = 20

For the option c:

The option can be expanded into

a*=b = (a = a* b); a = 10; b = 20

Therefore, the real value of a = 200 and b = 20

For the option d:

The option can be expanded into

a+=b = (a = a+ b); a = 10; b = 20

Therefore, the real value of a = 30 and b = 20

Similar questions