Q. Which data type is usually used to represent boolean values in C?

  • (A) bool
  • (B) boolean
  • (C) int
  • (D) bit
πŸ’¬ Discuss
βœ… Correct Answer: (C) int
Explanation: C uses int for boolean logic, where 0 is false and non-zero is true.
Explanation by: Mr. Dubey
C uses int for boolean logic, where 0 is false and non-zero is true.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
61
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate