Question
Easy

Which of the following is invalid C++ comment statement ?

1
/*//Comment/*/
2
//*Comment*/
3
/*Comment*\
4
//Comment
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Python Programming Fundamentals
Topic: Operators & Expressions
Correct Answer
Option C
Explanation

The correct option is (3): The statement /Comment\\ is an invalid C++ comment because it attempts to use a multi-line, C-style comment but fails to provide the correct closing delimiter. A valid C-style comment must start with the sequence /\* and be terminated by the exact sequence \/. In the given option, the comment is closed by \, which is not recognized as a comment terminator. This missing \*/ sequence…Read More