What does the include in the middle of code in C?

后端 未结 3 483
抹茶落季
抹茶落季 2021-01-14 05:13

Please, could you tell me what does the code below do?

...code...
#include file.h
...code...

I was used to put includes a the beggining of

3条回答
  •  北海茫月
    2021-01-14 05:34

    #include is a pre-processor directive that takes the file given as the argument and dumps its contents in the current file. Typically, this is used to include definitions of commons functions from header files, but there's no necessity to use it in that way.

提交回复
热议问题