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="Don Bruder, post: 3783936"] [i] No. It is not. For the original, there are 4 possible combinations - "true/true" or "false/false", which both cause "do something" to execute, and "true/false" or "false/true", which both cause "do something" to be skipped. In your version, the "do something" code ONLY gets executed if V is 1 AND SomeFunc() returns a value less than or equal to Limit. (the "true/true" case in the original version) Everything else (including the "false/false" that would cause "do something" to execute in the original) causes "do something" to be skipped. The difference is somewhat less than obvious, but may be critically important to proper operation.[/i] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Can anyone help me with this "if" condition please?
Top