Which of the following is not a valid keyword in C++ language?

8. Which of the following is not a valid keyword in C++ language?

  1. while
  2. for
  3. switch
  4. do-while

Answer: D) do-while

Explanation:

Do-while is a control statement, here "do" and "while" are different keywords.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.