Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 3 (Q.No. 48)
48.
Which of the following, if any, are invalid names for a variable?
bankAccountNumber
first_Name
doubleNumber
operator
All of the above are valid names for variables
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
3 comments Page 1 of 1.

Malli said:   1 decade ago
The 'operator' is a keyword in c++.

Gdsg said:   1 decade ago
Thanks malli.

Farman Mehsud said:   1 decade ago
Because operator is a reserved word in C++. Reserved word can't be write as variable name.

Post your comments here:

Your comments will be displayed after verification.