D
dogbert1793
Consider the code:
unsigned char uc;
cout << "sizeof( unsigned char ) = " << sizeof( uc ) << endl;
cout << "sizeof( ~unsigned char ) = " << sizeof( ~uc ) << endl;
Why is the output:
sizeof( unsigned char ) = 1
sizeof( ~unsigned char ) = 4
and not
sizeof( unsigned char ) = 1
sizeof( ~unsigned char ) = 1
unsigned char uc;
cout << "sizeof( unsigned char ) = " << sizeof( uc ) << endl;
cout << "sizeof( ~unsigned char ) = " << sizeof( ~uc ) << endl;
Why is the output:
sizeof( unsigned char ) = 1
sizeof( ~unsigned char ) = 4
and not
sizeof( unsigned char ) = 1
sizeof( ~unsigned char ) = 1