define identifiers. explain the rule of identifiers with example
Answers
Answered by
3
identifiers are used to allocate memory to variables.
rules
1.The identifiers should not start with a number
2.It can start with any alphabetical values
3.As c is case sensitive the names are of different.
4.The use of underscores are also allowed in identifiers.
examples
int a, b
a_1
_1a
rules
1.The identifiers should not start with a number
2.It can start with any alphabetical values
3.As c is case sensitive the names are of different.
4.The use of underscores are also allowed in identifiers.
examples
int a, b
a_1
_1a
Answered by
1
identifier are the term that is used to define a name for variable,functions, names of constant.,etc.
Rules:-
- first character must be letter or underscore.
- identifier are case sensitive.
- not recognize special symbol except underscore.
- must not matched with reserved keyword.
example:- sum,_sum,sum1, etc
Similar questions