Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is '@' used in C++?

Tags:

c++

keyword

Is '@' used in C++? In this yacc file it is listed as a token. And i am sure i cant use @ as part of a variable name. Is @ used in C++? and how might i use it?

like image 285
An employee Avatar asked Oct 19 '09 12:10

An employee


People also ask

What does '@' mean in C?

The meaning of @ operator can be different for the particular compiler in which the code is compiled. For example, in IAR Embedded Workbench's C/C++ compiler the @ operator can be used for placing global and static variables at absolute addresses.


1 Answers

No, it isn’t used in C++. It doesn’t appear anywhere in the standard. In particular, it does not appear in the set of legal C++ characters [lex.charset].

like image 120
Konrad Rudolph Avatar answered Sep 21 '22 08:09

Konrad Rudolph