When assigning a value to a bool
, we have 2 options:
bool b = true;
bool b = 1;
Now my question is are these 2 any different in C++
? And what's better to use?
When assigning a value to a bool
, we have 2 options:
bool b = true;
bool b = 1;
Now my question is are these 2 any different in C++
? And what's better to use?