I’ve been following a couple of C tutorials and there is a certain point I’m not sure I understand. Some examples show function prototypes but without function definitions. The tutorials say that the code should compile ok, even if they won’t run.
Is this correct? Should C programs with missing function definitions compile ok?
The source code will compile with declarations only, but if any of the functions are called then a linker error will occur if the functions are not defined somewhere.