Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

The GNU C Programming Tutorial - Inclusive OR

Node:Inclusive OR, Previous:Logical operators, Up:Logical operators



Inclusive OR

Note well! Shakespeare might have been disappointed that, whatever the value of a variable to_be, the result of

to_be || !to_be

(i.e. "To be, or not to be?") is always 1, or true. This is because one or the other of to_be or !to_be must always be true, and as long as one side of an OR || expression is true, the whole expression is true.

 
 
  Published under free license. Design by Interspire