If originally x = 4, what is the value of x after the evaluation of the following expression? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

If originally x = 4, what is the value of x after the evaluation of the following expression?

x / = x + 2 = x = x/(x+2)

18th Apr 2019, 9:43 AM
jes
1 Resposta
+ 3
Error. Assignments are done from right to left, so one of the operations will be '2=something' and that doesn't work. You can try this yourself in 'Code Playground' instead of asking here btw.
18th Apr 2019, 9:53 AM
HonFu
HonFu - avatar