Q. What is the size of a 'bool' data type in C++?

  • (A) 1 byte
  • (B) 2 bytes
  • (C) 4 bytes
  • (D) It depends on the compiler
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1 byte
Explanation: The 'bool' data type typically occupies 1 byte in memory in most C++ implementations.
Explanation by: Shiva Ram
The 'bool' data type typically occupies 1 byte in memory in most C++ implementations.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
150
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
97%
Success Rate