#Z12301. 整型数据类型存储空间大小
整型数据类型存储空间大小
Description
Define one variable each of type int and short, then output their respective storage sizes in bytes.
Input Format
(None)
Output Format
A single line containing two integers, representing the storage sizes of the two variables, separated by a space.
#include <stdio.h>
int main() {
int a;
short b;
printf("%lu %lu\n", sizeof(a), sizeof(b));
return 0;
}
(无)
(无)