Home » C Programming » C Preprocessor

Will it result in to an error if a header file is included twice?

Correct Answer: It is compiler dependent.

Explanation:

Unless the header file has taken care to ensure that if already included it doesn't get included again.
Turbo C, GCC compilers would take care of these problems, generate no error.

← Previous Question

More Questions from C Preprocessor

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion