Hi, i'm using Keil Evaluation Boards to program my STM32F4Discovery. I was wondering, why can't I use boolean or bit type data? Or it's because i'm using the Evaluation version? I want to use "true" or "false" value, maybe i can use another type data besides that two buddies? I'll be happy and glad if anybody can help me with this one. Sorry for my bad english...
Well, bool is generally used for storing & checking true/false or 1/0. Logically, for storing only 2 values, 1 binary bit is enough.
An admirable reason. On more than one occasion I have commented a bool in C51 as "true or false or maybe"
It would have been better for you to say at the first that you'd prefer bool and bit to be precisely one bit rather than wanting them both to be the same (unspecified) size. That would have removed any doubt in what you meant.