RRB JE CBT2 : EXPERT
27 Jun

Identifier – Definition and Examples

Definition

An Identifier is a user-defined name given to a variable, function, class, object, array, structure, or any other program element.

In simple words: An identifier is the name used by the programmer to identify a program element.

Valid Identifiers

IdentifierValid?Reason
ageStarts with a letter
studentNameLetters only
_countStarts with _
marks123Ends with digits
total_marksUnderscore allowed
A1Letter followed by digit
Comments
* The email will not be published on the website.