error: implicit declaration of function 'printf'
Using a function without including the appropriate header file.
int main() {
printf("Hello, World!\n");
return 0;
}Include the appropriate header file for the function you're using.
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}stdio.h is needed for input/output functions like printf and scanfstdlib.h is needed for memory allocation functions like mallocstring.h is needed for string manipulation functions like strcpy