Computer Science, asked by abhinandan07, 1 year ago

define identifiers. explain the rule of identifiers with example

Answers

Answered by harshitha006
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
Answered by Anonymous
1

identifier are the term that is used to define a name for variable,functions, names of constant.,etc.

Rules:-

  1. first character must be letter or underscore.
  2. identifier are case sensitive.
  3. not recognize special symbol except underscore.
  4. must not matched with reserved keyword.

example:- sum,_sum,sum1, etc

Similar questions