1 2 | a[]={0,1,2,3,4}; a[i]=i; |
YVtdPXswLDEsMiwzLDR9OwphW2ldPWk7
cc1: warnings being treated as errors prog.c:1: error: data definition has no type or storage class prog.c:1: error: type defaults to ‘int’ in declaration of ‘a’ prog.c:2: error: ‘i’ undeclared here (not in a function) prog.c:2: error: data definition has no type or storage class prog.c:2: error: type defaults to ‘int’ in declaration of ‘a’
-
result: Compilation error (maybe you wish to see an example for C99 strict)


