Which data type would be most appropriate for storing a boolean value? 

  • int 
  • char 
  • double 
  • bool
The bool data type is specifically designed in C++ to store boolean values, which can be either true or false. Using other data types like int, char, or double for boolean values would be inefficient and not semantically clear. Thus, bool is the most appropriate choice for this purpose.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *