warning:ISO0 C90 forbids mixed declarations and code

原因:定义变量前面有非定义变量的语句,比如

printf("hello world!!!");

int i;

这样就会出现警告。

解决办法:将定义变量的语句放在前面即可,也就是把int i放在printf前面。


你可能感兴趣的:(warning:ISO0 C90 forbids mixed declarations and code)