Size of 4 byte long in different datatype in C++.

Q18. If short integer on a machine is 4 bytes long, what will be the size of unsigned short and signed short on the same machine?

Ans. If short integer is 4 bytes long, than the possible size of unsigned short would be 4 bytes and signed short would be 4 bytes.

Leave a Reply

Your email address will not be published. Required fields are marked *

100 Views
%d bloggers like this: