Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

Please help me. In the code below, what would you expect the value of y to be at the end of the code? x = 2 y = x + 3 x = 4 A.7 B.3 C.2 D.5

OpenStudy (maitre_kaio):

At the time y is evaluated, x = 2, so y should be 5. But it's really easy to confirm this for yourself by typing this really short program and running it. Remember that CS is a matter of experience.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!