Which of the following identifiers is correct
निम्नलिखित में से कौन सा आइडेन्टिफायर सही है
Select one:
O AVOID
VOID
O B. SIMPLE INT
SIMPLE_INT
O C.3 FRIENDS
3 FRIENDS
his
OD. #3 FRIENDS
#3 FRIENDS
Answers
Answered by
0
"Option B: SIMPLE_INT".
Explanation :
Identifiers are the names given for variables, functions, and labels in the program. Identifier names must vary in spelling and keywords must not be used as identifiers.
Option B: "SIMPLE_INT", is the correct answer.
Option A: "void" is the predefined keyword and it cannot be used as an identifier.
Option C: "3 FRIENDS", Identifiers must not have any space in it.
Option D: "#3 FRIENDS", Identifiers must not have any special characters except underscore.
Similar questions