Multi-line comments in C - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32) +--- Thread: Multi-line comments in C (/showthread.php?tid=5129) |
Multi-line comments in C - Qomplainerz - 07-26-2023 Description: In C, multi-line comments (also known as block comments) allow you to add comments that span multiple lines. Multi-line comments begin with /* and end with */. Anything between /* and */ is considered a comment and is ignored by the compiler. Example: /* This is a multi-line comment. It can span multiple lines and is ignored by the compiler. It is used for adding detailed explanations or large comment blocks. */ Explanation: In this example, the multi-line comment starts with /*. The comment content can span multiple lines. The comment is terminated with */. Anything between /* and */ is considered a comment and is not processed by the compiler. |