I have the following files:
main.c
#include <stdio.h>
#include "test.h"
int main(){
printf("%d", testFunction());
return 0;
}
test.h
int testFunction();
test.c
int testFunction(){
return 1;
}
should i include test.h in test.c?
test.c
#include "test.h" //is this necessary?
int testFunction(){
return 1;
}
If I run the main, there are no errors in either case.