I know that bool values are only supposed to be able to be 0 or 1, but what could cause one to get the value of 24, and what does that even mean?
I know that bool values are only supposed to be able to be 0 or 1, but what could cause one to get the value of 24, and what does that even mean?
I think in C/C++ doesnt matter what the value of the boolean is...its more like 0 is false, and true is anything else (not just 1). thats why its nice to be able to say 'true' and 'false' rather than hardcode the value.
so to sorta answer your question 24 would be 'true'.
hope that helped,
Boomba,
Alright, thanks