Computer Science, asked by kuldeepom28, 7 months ago

Q59. Identifier name cannot be
composed of special characters
other than
O a) #
O b) Hyphen(-)
O c) $
O d) Underscore(_)​

Answers

Answered by 000420
0

Answer:

None of these

Answered by vishakasaxenasl
0

Answer:

The correct answer is option(d)

d) Underscore(_)

Explanation:

  • Identifiers are the valid literals that can be used by the programmer for naming the variables, constants, functions, etc.
  • These identifiers should be selected in such a way that they do not clash with the pre-defined keywords of language.
  • One of the rules of creating the identifier is that the name of the identifier cannot start with any special character except underscore(_)
  • There are some conventions of naming identifiers.
  • For example The name of a variable should always start with a lower case letter and the Function name starts with a capital letter.
  • But these are just conventions not rules.

For example:

int #var;

This is invalid

But

int _var;

This is valid.

#SPJ3

Similar questions