#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int main(void)
{
printf("### 1 Byte = 8 bit ###\n"); printf("int : %d byte\n",sizeof(int)); printf("unsigned int : %d byte\n",sizeof(unsigned int)); printf("long int : %d byte\n",sizeof(long int)); printf("unsigned long int : %d byte\n",sizeof(unsigned long int)); printf("long long int : %d byte\n",sizeof(long long int)); printf("float : %d byte\n",sizeof(float)); printf("double : %d byte\n",sizeof(double)); printf("long double : %d byte\n",sizeof(long double)); printf("(void *) : %d byte\n",sizeof(void *)); printf("INT_MAX = %d\n", INT_MAX
); printf("UINT_MAX = %ud\n", UINT_MAX
); printf("LONG_MAX = %ld\n", LONG_MAX
); printf("ULONG_MAX = %lud\n", ULONG_MAX
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4gCiNpbmNsdWRlIDxsaW1pdHMuaD4KCmludCBtYWluKHZvaWQpCnsKCiAgICAgICAgcHJpbnRmKCIjIyMgMSBCeXRlID0gOCBiaXQgIyMjXG4iKTsKICAgICAgICBwcmludGYoImludCA6ICVkIGJ5dGVcbiIsc2l6ZW9mKGludCkpOwogICAgICAgIHByaW50ZigidW5zaWduZWQgaW50IDogJWQgYnl0ZVxuIixzaXplb2YodW5zaWduZWQgaW50KSk7CiAgICAgICAgcHJpbnRmKCJsb25nIGludCA6ICVkIGJ5dGVcbiIsc2l6ZW9mKGxvbmcgaW50KSk7CiAgICAgICAgcHJpbnRmKCJ1bnNpZ25lZCBsb25nIGludCA6ICVkIGJ5dGVcbiIsc2l6ZW9mKHVuc2lnbmVkIGxvbmcgaW50KSk7CiAgICAgICAgcHJpbnRmKCJsb25nIGxvbmcgaW50IDogJWQgYnl0ZVxuIixzaXplb2YobG9uZyBsb25nIGludCkpOwogICAgICAgIHByaW50ZigiZmxvYXQgOiAlZCBieXRlXG4iLHNpemVvZihmbG9hdCkpOwogICAgICAgIHByaW50ZigiZG91YmxlIDogJWQgYnl0ZVxuIixzaXplb2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