Computer Science, asked by AMMUKUTTY11th, 3 months ago

what is an identifier?what are the rules for naming an identifiers? ​

Answers

Answered by pawangheghta199729
2

Answer:

The identifier can only be composed of letters (lower or upper case), numbers, and the underscore character. That means the name can not contain symbols (except the underscore) nor whitespace (spaces or tabs). The identifier must begin with a letter (lower or upper case) or an underscore.

Rules for naming identifiers

A valid identifier can have letters (both uppercase and lowercase letters), digits and underscores. The first letter of an identifier should be either a letter or an underscore. You cannot use keywords like int , while etc. ... There is no rule on how long an identifier can be.

Answered by divyabhanushali2015
9

Answer:

An identifier is a name that identifies either a unique object or a unique class of objects, where the "object" or class may be an idea, physical countable object, or physical noncountable substance. The abbreviation ID often refers to identity, identification, or an identifier.

Explanation:

Rules for naming identifiers

  • A valid identifier can have letters (both uppercase and lowercase letters), digits and underscores.
  • The first letter of an identifier should be either a letter or an underscore.
  • You cannot use keywords like int , while etc. as identifiers.
  • There is no rule on how long an identifier can be.

hope it's helpful to you ❤️

Similar questions