Tag: implicit int

C编译器在未指定类型时不抛出错误

为什么以下程序不会抛出错误: dfljshfksdhfl; #include int main () { return 0; } gcc会发出警告: test.c:1:1:警告:数据定义没有类型或存储类[默认启用]

C89标准中的哪个部分允许“隐式整数”规则?

使用gcc ,代码: register a = 3; static b = 3; 虽然有警告,但在使用-std=c89 -pedantic-errors标志时允许使用它。 但是,它会收到-std=c99 -pedantic-errors标志-std=c99 -pedantic-errors 。 我想知道C89标准的哪一部分允许“隐含整数”规则?