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="Matthias Arndt, post: 4223538"] Hello all, I heard an opinion on the use of the | operator together with C99 conform bool types (stdbool.h) My discussion partner stated that _Bool a, b; ....... a | b; should be forbidden and a || b should be used instead. I personally can't see the difference for true boolean types (which would be *implementation* specific, but let's assume an embedded compiler with a true bool type that maps to a real bit.) What does the standard say? Are there opinions on this? I personally have no true opinion on this, otherwise I wouldn't open this up for discussion. Best regards, Matthias [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
| vs || operator on C99 bool types
Top