Home >Backend Development >C#.Net Tutorial >What is user identifier in C language?

What is user identifier in C language?

青灯夜游
青灯夜游Original
2020-07-20 15:15:229598browse

User identifier is: an identifier defined by the user according to his or her needs (a symbol used to identify a certain entity, which has different meanings in different application environments); generally used to assign variables, functions, Arrays, etc. are named to establish the relationship between name and use.

What is user identifier in C language?

Identifier refers to a symbol used to identify an entity and has different meanings in different application environments. In computer programming languages, identifiers are names used by users when programming. They are used to name variables, constants, functions, statement blocks, etc., to establish a relationship between name and use. Identifiers usually consist of letters, numbers, and other characters.

User identifiers are: identifiers defined by users according to their own needs. They are generally used to name variables, functions, arrays, etc., to establish a relationship between names and uses.

If the user identifier is the same as the keyword, an error will occur during compilation; if it is the same as the predefined identifier, no error will occur during compilation, but the original meaning of the predefined identifier will be lost, or an error will occur during compilation. The result is incorrect, so predefined identifiers are generally not used as user identifiers.

Expand knowledge:

Predefined identifiers are identifiers predefined by the system in C language, such as system class library names, system constant names, and system function names. Predefined identifiers have the characteristics of clear meaning, such as the function "format output" (full English name plus abbreviation: printf), "format input" (full English name plus abbreviation: scanf), sin, isalnum, etc.

Predefined identifiers can be used as user identifiers, but this will lose the original meaning specified by the system, and improper use will cause program errors.

Related recommendations: "c Language Tutorial"

The above is the detailed content of What is user identifier in C language?. 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