What will be written by the above code if a short is two bytes long?brief testarray[4] [3] = 1, 2, 3, 4, 5, 6; printf(" percent d", sizeof(testarray)); A.
A. 6
B. 7
C. 12
D. 24
Answer:C
What will be written by the above code if a short is two bytes long?brief testarray[4] [3] = 1, 2, 3, 4, 5, 6; printf(" percent d", sizeof(testarray)); A.
A. 6 B. 7 C. 12 D. 24
Explanation: The table below contains information about typical integer types, including storage sizes and value ranges.Type Storage size Value range char 1 byte -128 to 127 or 0 to 255 unsigned char 1 byte 0 to 255 signed char 1 byte -128 to 127 int 2 or 4 bytes -32,768 to 32,767 or -2,147,483,648 to 2,147,483,647 unsigned int 2 or 4 bytes 0 to 65,535 or 0 to 4,294,967,295 short 2 bytes -32,768 to 32,767 unsigned short 2 bytes 0 to 65,535 long 4 bytes -2,147,483,648 to 2,147,483,647 unsigned long 4 bytes 0 to 4,294,967,295