I am printing a line like this
And this produces the following output
I want to know why it does not give me an error as I commented half of the statement and there should be
missing terminating " character
The grammar of C++ (like most of programming languages) is context-sensitive. Simply,
// does not start a comment if it is within a string literal.