0
C header file problem
test.h int test(int x); test.c int test(intx){ return x; } int test2(){ return 10; } main.c #include "main.h" test2() ---> error not declared in scope So these are not the actual files but this is the problem is there way to declare test2 without writing in test.h Can i declare the function on top of the main.c kinda like main.c #include "main.h" int test2(); test2() Also i want it to retaim what is inside the function of course
3 Answers