1 /*
2 file name:lab.c
3 date : Mon 28 Feb 2022 08:06:17 PM EST
4 */
5 #include <stdio.h>
6
7 int main(int argc, char *argv[])
8 {
9
10 char a[(sizeof(int) != 4) ? -1 : 0];
11
12 return 0;
13 }
14
sizeof(int) 不等于4时,数组a的大小为-1报错,等于4时,数组a大小为0不占用内存