Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Can anyone help me with this "if" condition please?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Lew Pitcher, post: 3783571"] [i] Yes, but in this case, each subexpression is formed using a relational operator, and (for at least C99), relational operators resolve to either 0 (if the relation is false) or 1 (if the relation is true). ISO 9899-1999 states, in Section 6.5.8 ("Relational Operators") point 6 "Each of the operators < (less than), > (greater than), <= (less than or equal to), and >= (greater than or equal to) shall yield 1 if the speciï¬ed relation is true and 0 if it is false.89) The result has type int." So, I stand by my statement that the result of each bracketed expression will either be 1 (if the expression evaluates true) or 0 (if it evaluates false). [snip] -- Lew Pitcher Master Codewright & JOAT-in-training | Registered Linux User #112576 [URL]http://pitcher.digitalfreehold.ca/[/URL] | GPG public key available by request ---------- Slackware - Because I know what I'm doing. ------[/i] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Can anyone help me with this "if" condition please?
Top