www.thecareerplus.com
The CareerPlus
Home Technical Resources Programming Variables and Data types
Thursday 09th September 2010
 
 
Does C have boolean variable type?

Discuss it!          



No, C does not have a boolean variable type. One can use ints, chars, #defines or
enums to achieve the same in C.
#define TRUE 1 #define FALSE 0 enum bool {false, true}; An enum may be good if the debugger shows the names of enum constants when examining
variables.

Discuss it!          

CrackTheIntervew.NET
Advertisement
 
Top! Top!