Here is my code:
int main(int argc, char ** argv)
{
cout << "binary representation of 255: " <<
bitset<numeric_limits<int>::digits>(255) << endl;
return 0;
}
//output
binary representation of 255: 0000000000000000000000011111111
What is wrong here? why only 31 bit instead of 32 bits displayed?
thanks
wm