Home>Article>Backend Development> c++ identifier naming rules

c++ identifier naming rules

王林
王林 Original
2020-07-01 15:06:01 10021browse

c Identifier naming rules: 1. Identifiers are composed of letters, numbers and underscores; 2. The c keyword cannot be used as an identifier; 3. The identifier length is limited to 32 characters; 4. Identifier pairs Case sensitive; 5. The first letter can only be letters or underscores, not numbers.

c++ identifier naming rules

c Identifier naming rules:

(recommended learning:C language tutorial)

  • Identifiers consist of letters, numbers and underscores

  • Cannot use C keywords as identifiers

  • Identifier length limit is 32 characters

  • Identifiers are case-sensitive

  • The first character can only be a letter or an underscore, not an number

The above is the detailed content of c++ identifier naming rules. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn