What is a “translation unit” in C++

前端 未结 11 711
既然无缘
既然无缘 2020-11-21 07:56

I am reading at the time the \"Effective C++\" written by Meyers and came across the term \"translation unit\".

Could somebody please give me an explanation of:

11条回答
  •  灰色年华
    2020-11-21 08:21

    A translation unit is code that is passed to the compiler proper. This typically means the output from running the preprocessor on the .c file.

提交回复
热议问题