1、
#include <stdio.h>
int main(void)
{
int n;
printf("sizeof(1) = %u\n", (unsigned)sizeof(1));
printf("sizeof(+1) = %u\n", (unsigned)sizeof(+1));
printf("sizeof(-1) = %u\n", (unsigned)sizeof(-1));
printf("sizeof(unsigned) - 1 = %u\n", (unsigned)sizeof(unsigned) - 1);
printf("sizeof(double) - 1 = %u\n", (unsigned)sizeof(double) - 1);
printf("sizeof((double) - 1) = %u\n", (unsigned)sizeof((double) - 1));
printf("sizeof(n + 2) = %u\n", (unsigned)sizeof(n + 2));
printf("sizeof(n) + 2 = %u\n", (unsigned)sizeof(n) + 2);
printf("sizeof(n + 2.0) = %u\n", (unsigned)sizeof(n + 2.0));
return 0;
}
原文:https://www.cnblogs.com/liujiaxin2018/p/14774871.html