A

Admin • 833K Points
Coach

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

  • (A) bool
  • (B) boolean
  • (C) int
  • (D) bit
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

C uses int for boolean logic, where 0 is false and non-zero is true.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.