How can I find the header files of the C programming language in Linux?

前端 未结 10 1797
南笙
南笙 2020-12-07 08:42

When I write C programs in Linux, and then compile them using gcc, I am always curious about where those header files are. For example, where stdio.h is. More g

10条回答
  •  借酒劲吻你
    2020-12-07 09:18

    During the preprocessing all preprocessor directives will be replaced with the actuals. Like macro expansion, code comment removal, including the header file source code etc...

    we can check it by using the 'CPP' - C PreProcessor command.

    For example in the command line,

    cpp Filename.c

    It will display the preprocessed output.

提交回复
热议问题