C语言:
#include <stdio.h>
int main() {
int x,y,n,m;
x=sizeof(short int);
y=sizeof(int);
n=sizeof(long int);
m=sizeof(long long int);
printf("The size of short is %d bytes.\n",x);
printf("The size of int is %d bytes.\n",y);
printf("The size of long is %d bytes.\n",n);
printf("The size of long long is %d bytes.\n",m);
return 0;
}