Q. Which of the following is not a valid C++ identifier?

  • (A) _variable
  • (B) 123variable
  • (C) variable_123
  • (D) VariableName
πŸ’¬ Discuss
βœ… Correct Answer: (B) 123variable
Explanation: In C++, an identifier cannot start with a digit.
Explanation by: Ranjeet
In C++, an identifier cannot start with a digit.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
123
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
95%
Success Rate