Home »
MCQs »
C++ MCQs
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?
- while
- for
- switch
- do-while
Answer: D) do-while
Explanation:
Do-while is a control statement, here "do" and "while" are different keywords.