You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although one wouldn't likely want to do this, it should be legal syntax, and students frequently make this mistake. The following expression causes a parse error:
if (i != 0 || i = 0)
Putting parenthesis around the assignment in the expression causes the syntax to be accepted.
if (i != 0 || (i = 0))
The text was updated successfully, but these errors were encountered:
Although one wouldn't likely want to do this, it should be legal syntax, and students frequently make this mistake. The following expression causes a parse error:
Putting parenthesis around the assignment in the expression causes the syntax to be accepted.
The text was updated successfully, but these errors were encountered: