In C programming, Comments are used to explain, describe, or annotate parts of the code for human readers, making the code easier to understand and maintain. Comments are ignored by the compiler and do not affect the program’s execution.
There are two types of Comments in C
Single-line comment
This comment starts with //. Everything after // on that line is treated as a comment.
Example:
// This is a single-line comment
printf("Welcome Removeload.com");
Multi-line comment
This comment begins with /* and ends with */. Everything between these symbols is treated as a comment, even if it spans multiple lines.
/* This is a multi-line comment
show welcome message
*/
printf("Welcome Removeload.com");
Note: It is used for longer explanations or to temporarily disable parts of code.