Which of the following types is provided by C++ but not C ?
In C++, bool is a built-in data type that represents boolean values. A boolean value can have two states: true or false. It is used for logical operations and conditional expressions in C++. The data type bool was introduced in C++ to provide a more intuitive and expressive way to handle boolean values directly.
In contrast, C does not have a built-in boolean data type. In C, developers often use integers (int) to represent boolean values, where 0 is considered false, and any non-zero value is considered true.