c – warning: implicit declaration of function ‘printf’

You need to include the appropriate header

#include <stdio.h>

If you’re not sure which header a standard function is defined in, the function’s man page will state this.

Leave a Comment