cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
typedef int BOOL;
typedef int BOOL;
Oct 4, 2009 at 3:31pm UTC
hamsterman
(4538)
found this in WinDef.h
...why?
Oct 4, 2009 at 4:55pm UTC
Duthomhas
(13212)
Because C doesn't have a boolean data type.
Oct 4, 2009 at 6:47pm UTC
hamsterman
(4538)
oh.. thanks, though wouldn't char make more sense?
Oct 4, 2009 at 7:24pm UTC
R0mai
(730)
char could actually be slower as int's size equals to the CPU's word-size.
Topic archived. No new replies allowed.