In the following code:
Does the parser read it like:Code:if (sys.readErr != 0 || 1) {...
[ sys.readErr != 0 ] || 1
OR
sys.readErr != [0 || 1] ?
This is a discussion on Newbish concern regarding "if" command within the C Programming forums, part of the General Programming Boards category; In the following code: Code: if (sys.readErr != 0 || 1) {... Does the parser read it like: [ sys.readErr ...
In the following code:
Does the parser read it like:Code:if (sys.readErr != 0 || 1) {...
[ sys.readErr != 0 ] || 1
OR
sys.readErr != [0 || 1] ?
The former.
You need to use
Code:if (sys.readErr != 0 || sys.readErr != 1) { ...
Wow, fast response. Thanks much guys!