answersLogoWhite

0

It depends on both the programming language and the computer architecture, but it is generally assumed to be 2 bytes/16 bits.

In C/C++, an implementation may decide to skip shorts as a separate type and make the short the same as an int, normally 4 bytes/32 bits.

See related link for some more details.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

How many bytes is a double variable?

There are 8 bytes in a double


'How many bytes is a float variable'?

4


How many bytes take an integer variable in C under windows?

A plain integer variable in C under windows is 2 bytes in 16 bit windows, and 4 bytes in 32 bit windows.


How many bytes integer variable can take?

The number of bytes an integer variable can take depends on the programming language and the system architecture. Typically, in languages like C and C++, an int usually takes 4 bytes (32 bits) on a 32-bit or 64-bit architecture, while a short takes 2 bytes and a long can take 4 or 8 bytes depending on the system. In Python, integers can vary in size and can take more than 4 bytes, depending on their value, as they are dynamically allocated. Always check the specific language documentation for precise details.


How many bytes in an address of an int variable?

32 bits or 4 bytes and an int is not an address, it is a primitive so it directly access the data without a reference.


What does the reserved word Short mean in java?

A short is an integer that uses only 2 bytes, instead of the 4 bytes required by an int.A short is an integer that uses only 2 bytes, instead of the 4 bytes required by an int.A short is an integer that uses only 2 bytes, instead of the 4 bytes required by an int.A short is an integer that uses only 2 bytes, instead of the 4 bytes required by an int.


22222222 bytes how many MB?

1kb = 2^10 = 1024 bytes 1 mb = 2^10 = 1024 kb = 2^20 bytes = 1048576 bytes. 22222222 bytes = 21.197 mb 21 mb = 22020096 bytes that is 202126 bytes short of the given no. 202126 bytes = 197.388 kb


Define pointer in C?

Pointer is a variable, A variable that stores the address of another variable. Size of a pointer is 2 bytes.


What is short for bytes?

You can abbreviate "bytes" with a capital B. Try not to confuse this with a lowercase b, which is short for "bits".


What is short for bytes per second?

BPS = Bytes Per Second.


How many bytes does long and short data type reserve?

sizeof (long) and sizeof (short) often 4 or 8 for long, and 2 for short


How many bytes is an integer variable?

It depends on the context. Each database and computer language define an "integer". In the C language an integer is defined by the hardware. It can vary from 2 to 8 bytes or more.