double = 8 bytes.
long double = 10 bytes.
#include<stdio.h>
int main()
{
short int i = 10;
long int j = 10;
printf("short int is %d bytes.,\nlong int is %d bytes.",
sizeof(i),sizeof(j));
return 0;
}
Output:
short int is 2 bytes.
long int is 4 bytes.
Copyright ©CuriousTab. All rights reserved.