C++ Boolean Data Types
A boolean data type is declared with the
bool keyword and can only take the values
false. When the value is returned,
bool isFishTasty = false;
cout << isCodingFun; // Outputs 1 (true)
cout << isFishTasty; // Outputs 0 (false)
Boolean values are mostly used for conditional testing, which you will learn more about in a later chapter.