OOPortal
RationalDB Database Design
prev next prev next
  Course navigation
 
Lesson 6
Objective
Bool expressions
Understand how C++ treats boolean expressions.
    Operators and expression forms in C++ are largely the same as in C. One difference is that relational, equality, and logical expressions evaluate as bool expressions.
In contemporary C++ systems, the boolean values true and false are used to direct the flow of control in the various statement types.
Relational, equality, and logical operators operate on expressions and yield either the bool value false or the bool value true. This differs from the C convention of treating zero as false and nonzero as true because no bool type exists in C.
  Course navigation