Hi,

sorry for such a trivial question.... What is it better to include the header files in the header file or in the main program (probably bearing in mind that the .h file is not dependent on the header files to be included).

Eg. main.c and main.h

main.c
Code:
#include "main.h"
#include <stdio.h>
OR

main.h
Code:
#include <stdio.h>
main.c
Code:
#include "main.h"
And if smn has a spare minute to provide a link or explain why one would be better than the other it would be great...

Cheers