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

Q17. On a machine, short integer is 2 bytes long. What can be the possible size for int integer, short integer and long integer on the same machine, keeping in mind C++ standard?

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

Leave a Reply

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

%d bloggers like this: