#include <stdio.h>

int main(void) {
    printf("\n size of short: %d", sizeof(short));
    printf("\n size of int: %d", sizeof(int));
    printf("\n size of long int: %d", sizeof(long));
    return 0;
}

 OUTPUT:

size of short: 2
size of int: 4
size of long int: 4

 

Author: Abhijit