R

Ranjeet • 34.60K Points
Instructor I

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

  • (A) 123variable
  • (B) variable_123
  • (C) @variable
  • (D) variable#123
  • Correct Answer - Option(B)
  • Views: 36
  • Filed under category C++

Explanation by: Ranjeet
C++ identifiers can contain letters, digits, and underscores, but cannot begin with a digit.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics