What is the use of @ symbol in c language

孤者浪人 提交于 2019-12-24 00:38:28

问题


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;


来源:https://stackoverflow.com/questions/23737066/what-is-the-use-of-symbol-in-c-language

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!