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
| vs || operator on C99 bool types
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="Tim Rentsch, post: 4223880"] If I may make a suggestion -- Write up a list of reasons (as many as you can think of) for why 'a && b' is preferable to 'a & b', and also a list for why 'a & b' is preferable to 'a && b', and circumstances under which it would be better to use one or the other. After these have been assembled, present them to your discussion partner, and ask him (or her) which ones he agrees with, which ones he disagrees with, how important they are, and whether any have been left out. I think a case can be made that neither form is "best" in all circumstances, so which one should be used would depend on where and how the use would occur. Having said that, the important thing here is not just to reach a good decision about what to do, but to understand more specifically what your discussion partner thinks and why. Reviewing the plus/minus lists together will do that. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
| vs || operator on C99 bool types
Top