Type in the values for a and b separated by a single space a

Type in the values for a and b (separated by a single space) after executing the following code sequence a = 6; b = 2; a-= b++ +3;

Solution

Answer is

1 3

Explaination:

a = 6
b = 2
a -= b++ +3;

a = a - ((b++) + 3)

a = 6 - ((2) + 3) // after this line b will increment to 3

a = 6 - 5

a = 1

 Type in the values for a and b (separated by a single space) after executing the following code sequence a = 6; b = 2; a-= b++ +3;SolutionAnswer is 1 3 Explain

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site