许多编译器似乎只保留bool值中的0或1,但我不确定这将始终有效:
int a = 2; bool b = a; int c = 3 + b; // 4 or 5?
c c++ boolean
boolean ×1
c ×1
c++ ×1