Junior
What is the size of the primitive data type short?
sobes.tech AI
Answer from AI
The primitive data type short usually occupies 2 bytes (16 bits) in memory. It is a signed integer type that can store values approximately from -32,768 to 32,767.
For example, in Java, short takes 2 bytes:
short s = 1000;
System.out.println(s); // 1000
Size and range may vary slightly depending on the language and platform, but 2 bytes is standard for the short type.