What is a C header file?

What would be the disadvantages of integrating all the C standard library header files into one single library header file?

  • Answer:

    The biggest reasons not to include header files in other header files are simple: If you change a header file, you end up recompiling more than you need to. A particularly painful example of this is if you have core commonly used header files for large projects that change often. Include header files in other headers as a last resort - including them only as needed in .c files is far more preferable from the perspective of keeping your compile times as low as possible.

Kartik Ayyar at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.