Many programming text editors automatically format comments, string literals, and other syntactical elements. In more primitive environments, a misplaced comment or quotation mark can trip up the compiler. To find the extra comment or quotation mark, insert the following sequence intro your code in C, C++, C# or Java.

/*"/**/

This code phrase will terminate either a comment or string, which is useful in narrowing the space in which the unterminated comment or string is hidden.

obj->text = "Hello world;
// Some other code
delete obj;

This code will raise an error because you forgot a quotation mark after "world". Placing the /*"/**/ after that line will close the string literal.

obj->text = "Hello world;
// Some other code
delete obj; /*"/**/

The selected text is now a string literal and you won't get any compilation error. You have limited the search space for the error.