What is the use of @ symbol in c language

2019-07-23 05:11发布

问题:

The symbol @ was seen in one the program ,But i could not find why it is used .

The syntax is

 const unsigned char Array_name[] @(INFO_Array+1) = {................};

回答1:

To me, it looks like a compiler flag to disable interpreting the string "INFO_Array+1" as an expression. In C# for example, you can use the @-Operator to tell the compiler to use the following expression as String without trying to evaluate it.

A quick googling showed:

For example, this line will fail to compile:

int new = 1776;   // 'new' is a keyword 

However, this line compiles without error:

int @new = 1776;


标签: symbols