Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]

Tags:

c

system-calls

People also ask

What is incompatible implicit declaration of built in function?

If an implicit declaration does not match the built-in definition, you get this warning. To fix the problem, you have to declare the functions before using them; normally you do this by including the appropriate header.

What is implicit declaration?

If a name appears in a program and is not explicitly declared, it is implicitly declared. The scope of an implicit declaration is determined as if the name were declared in a DECLARE statement immediately following the PROCEDURE statement of the external procedure in which the name is used.


You need to add #include <stdio.h> to the top of your file.