What does the C++ standard say about using dollar signs in identifiers, such as Hello$World
? Are they legal?
What does the C++ standard say about using dollar signs in identifiers, such as Hello$World
? Are they legal?
A c++ identifier can be composed of any of the following: _ (underscore), the digits 0-9, the letters a-z (both upper and lower case) and cannot start with a number.
There are a number of exceptions as C99 allows extensions to the standard (e.g. visual studio).