What is the comment character?

What is the comment character?

Any bytes on a line after a line-comment sequence ( // or # ) are ignored up until the ASCII newline character ( \n ). They may thus be written in any character encoding which is convenient.

Which character is used for comments?

A “comment” is a sequence of characters beginning with a forward slash/asterisk combination (/*) that is treated as a single white-space character by the compiler and is otherwise ignored.

What are comments How are they useful?

In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program. They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters.

What do you use to indicate the end of a comment?

Line comments generally use an arbitrary delimiter or sequence of tokens to indicate the beginning of a comment, and a newline character to indicate the end of a comment. In this example, all the text from the ASCII characters // to the end of the line is ignored.

What kind of characters can you put in a comment?

A comment can include any combination of characters from the representable character set, including newline characters, but excluding the “end comment” delimiter (*/). Comments can occupy more than one line but cannot be nested. Comments can appear anywhere a white-space character is allowed.

Can a comment be more than one line?

Comments can occupy more than one line but cannot be nested. Comments can appear anywhere a white-space character is allowed. Since the compiler treats a comment as a single white-space character, you cannot include comments within tokens. The compiler ignores the characters in the comment.

What does the C comment mean in MSDN?

C Comments. A “comment” is a sequence of characters beginning with a forward slash/asterisk combination (/*) that is treated as a single white-space character by the compiler and is otherwise ignored.