A

Admin • 833.24K Points
Coach

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: 31
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

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.