C Compiler Errors: 'printf' Conflict, 'while' Loop Issue, and Deprecated Function Declaration
The compiler is giving three warnings/errors:
-
The function declaration for 'main()' does not have a prototype, which is deprecated in C and conflicts with a previous declaration. This means that the compiler cannot guarantee that the function is being used correctly.
-
There is a conflicting declaration for the 'printf()' function. The previous declaration is in the 'stdio.h' header file and the new declaration is in the 'main()' function.
-
The 'while(true)' statement is outside of a function. This means that it cannot be executed and is not valid syntax.
原文地址: https://www.cveoy.top/t/topic/oWup 著作权归作者所有。请勿转载和采集!