Computer Science, asked by pasana7847, 1 year ago

What is an identifier? What are the rules to construct an identifier

Answers

Answered by palak2209
11

Explanation:

identifiers is the term used to represent program elements such as function name or class name . rules for naming a variable number 1 a variable may have any number of characters . number 2 it may contain alphabets with its digits ,Dollar sign and underscore . number 3 the underscore can be used in between the characters to separate the words of A variable name. number 4 the variable names should be meaningful which easily depicts its purpose.

Answered by neelrambhia03
11

Answer:

An identifier is a name that identifies (that is, labels the identity of) either a unique object or a unique class of objects, where the "object" or class may be an idea, physical [countable] object (or class thereof), or physical [noncountable] substance (or class thereof).

The rules to construct an identifier are:

1) It should only consist of numeric and literal values and an underscore (_).

2) Only the first 32 figures of the identifier are prominent.

3) Any identifier cannot have a number as the first character.

4) Words already defined in the programming cannot be used as identifiers.

Hope this helps you.

Similar questions