What is the '\' operator in the C language?

前端 未结 3 1351
猫巷女王i
猫巷女王i 2020-12-11 21:37

The example that I am looking at is like this:

#define CONTROL_MEM_SIZE    ((CONTROL_ITEM_SIZE * CONTROL_QUEUE_SIZE) +   \\
                            portQ         


        
3条回答
  •  既然无缘
    2020-12-11 22:37

    The \ character at the end of a line is a line continuation.

    It tells the preprocessor to ignore the newline and consider the following line as part of this one.

    Compare to the VBScript _ line continuation character.

提交回复
热议问题