Out of the following, which cannot be used as an identifier in C++?
2017
Out of the following, which cannot be used as an identifier in C++?
- A.
Derived / Derived
- B.
Class / Class
- C.
Total / Total
- D.
Name2 / Name2
Attempted by 284 students.
Show answer & explanation
Correct answer: B
Correct Answer: Class Explanation: In C++, keywords cannot be used as identifiers. “class” is a reserved keyword in C++.
A video solution is available for this question — log in and enroll to watch it.