Should variable definition be in header files?

后端 未结 4 1380
一整个雨季
一整个雨季 2020-12-01 10:30

My very basic knowledge of C and compilation process has gone rusty lately. I was trying to figure out answer to the following question but I could not con

4条回答
  •  不思量自难忘°
    2020-12-01 11:15

    Header guards stop a header file being included multiple times in the same translation unit (i.e. in the same .c source file). They have no effect if you include the file in two or more translation units.

提交回复
热议问题