Home  >  Article  >  Backend Development  >  Identifiers in C language can only be composed of three characters. What are they?

Identifiers in C language can only be composed of three characters. What are they?

烟雨青岚
烟雨青岚Original
2020-07-08 16:01:0636676browse

Identifiers in the C language can only be composed of three characters, which are underscores, letters, and numbers. C language identifier naming rules: 1. The identifier must start with the letters a~z, A~Z or an underscore, and can be followed by any number (can be 0) characters; 2. Identifiers are case-sensitive; 3. Identification symbol cannot be a keyword.

Identifiers in C language can only be composed of three characters. What are they?

Identifiers in the C language can only be composed of three characters, which are underscores, letters, and numbers.

Identifiers in C language should generally follow the following naming rules:

1 Identifiers must start with the letters a~z, A~Z or an underscore, and can be followed by any number of characters (can be 0). These characters can be letters, underscores, and numbers. Other characters are not allowed to appear in identifiers.

2 Identifiers are case-sensitive

3 The length of the identifier, c89 specifies within 31 characters, c99 specifies within 63 characters

4 Key words in C language Words have special meaning and cannot be used as identifiers

5 It is best to use a string with a certain meaning for a custom identifier to facilitate memory and understanding.

Recommended tutorial: "C Language Tutorial"

The above is the detailed content of Identifiers in C language can only be composed of three characters. What are they?. 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