What is the comment delimiter in C language
1. The earliest C language comment is: /* */
2. Line comments added later: //
where /**/ is a multi-line comment and // is a single-line comment.
It should be noted that C language comments cannot appear anywhere in C language code.
For example, the following comment is wrong:
in/*…*/t i;
Because the compiler will replace the comment with a space, the replaced statement is not a C statement, so an error will occur.
Recommended learning:c language video tutorial
The above is the detailed content of What is the comment delimiter in C language?. For more information, please follow other related articles on the PHP Chinese website!