I am trying to learn C but when trying to make a function I get an error.
This is my code:
int main()
{
sayHi("Isaac", 14);
return 0;
}
void sayHi(char name[], int age){
printf("Hello %s! You are %d\n", name, age);
}
When I try to run this I get an error that says this:
Warning: Implicit declaration of function 'sayHi' is invalid in C99 Warning: This function declaration is not a prototype
Error: Conflicting types for 'sayHi'
Can anyone help me please?