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="jameskuyper, post: 3783481"] [i] The key thing to understand is that comparison expressions like SomeFunc(Item[i], Col) <= Limit and V==1 have a value. This value is 0 if the comparison is false, and 1 if it is true. In other words, this code is equivalent to the following: int temp1 = (SomeFunc(Item[i], Col) <= Limit) ; int temp2 = (V == 1); if(temp1 == temp2) Therefore, what the if condition is saying is that the two sub- expressions must have the same truth value. In other words, either both sub-expressions are true, or both sub-expressions are false.[/i][/i][/i] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Can anyone help me with this "if" condition please?
Top