|
-
May 1st, 2000, 04:42 PM
#1
Logical operators
Hi
The following demonstrates that bitwise & and | work similar to logical AND(&&) and logical OR(||).
bitwise &
(true & true):true
(true & false):false
(false & true):false
(false & false):false
bitwise |
(true | true):true
(true | false):true
(false | true):true
(false | false):false
Then, why do we have logical AND and OR?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|