Computer Science, asked by rampadevi47289, 4 months ago

what would the following code do: x = y=7 ​

Answers

Answered by ojasvasinghlavania
0

Answer:

values of both x and y will be 7

Answered by advaithdeepu2007
0

Answer:

It would set the values of both variables x and y to 7

Explanation:

It can be solved by working backwards.

y=7 assigns value of 7 to y.

x=y assigns value of y to x, in this case the value is 7 so x will be assigned the value 7.

so, x=7 and y=7

Hope it helps :D

Similar questions