Menu

#30 If statement seen as function call

open
nobody
Language (6)
5
2011-06-08
2011-06-08
JustinK
No

When an if statement is written "if(condition)" WITHOUT a space between "if" and "(" it is interpreted as a function call of a function named "if". Only when there is a space does it interpret it as an if statement. This is not the case in other statements such as while statements.

Discussion


Log in to post a comment.