Home / C Programming / C Preprocessor :: Discussion

Discussion :: C Preprocessor

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

  2. A.
    Yes
    B.
    No
    C.
    It is compiler dependent.

    View Answer

    Workspace

    Answer : Option C

    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.


Be The First To Comment