Explain Why following code alerts 5 and not 6. I know it applies assignment first and increment next. https://code.sololearn.com/WfFESf1hUsox/?ref=app
11/29/2018 2:49:42 AM
Sindhe Kishan4 Answers
New Answerhttps://www.codecademy.com/en/forum_questions/514995a07272221a5b001f32 Here it is nicely explained
In the post he said x++ evaluates to x and hence old value is assigned to x. But after assignment increment operator should execute and increase the value of x by 1 right?
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message