#include<iostream> using namespace std; int main()
{ cout << "bool: \t\t" << "所占字节数:" << sizeof(bool); cout << "\t最大值:" << (numeric_limits<bool>::max)(); cout << "\t\t最小值:" << (numeric_limits<bool>::min)() << endl; return 0;
}
若要查看int或者其它类型,把bool换成int即可