If I have a header file List.h
that contains the prototypes of the functions related to a list, the definitions of the functions are in a source file (c file) List.c
. Both List.c
file and the main.c
file(or any source file representing the main program) include the List.h
file. Now the main program has the prototypes of the list functions, but how did the definitions of the functions get included in the main program while there is no inclusion for the List.c
file into main.c
file? It is not about that the List.h
and List.c
files have the same name.
I am working on Windows and using MS Visual Studio.