Yes, x in both codes will be 1
RE: Challenge yourself: guess what would be the answer?
You are viewing a single comment's thread from:
Challenge yourself: guess what would be the answer?
Challenge yourself: guess what would be the answer?
Yes, x in both codes will be 1
Thanks for your comment:) But the answer is negative!
The reason:
in the right code, the value of x will be changed after the first if statement.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit