Ads Top

Naming of An Identifier

Identifier

Identifiers are the userdefined words that can be used to refer the diffrent elements of a program.

For eg:- roll no,name,age e.t.c.

Naming of An Identifiers

There are following points to observe in case of naming an identifier

  1. An identifier can be max of 40 character.
  2.  The name of an identifier must start either by an alphabet or underscore sign.
  3. In between or at the end of an identifier the digits are allowed.
  4. in between an identifier the space is not allowed.
  5. an identifier must not be an a keyword .
For Example:- rollno,name,employs e.t.c

No comments:

Powered by Blogger.