What are they ?
In every programing language exists comments, they help you document, explain or take notes in your code. They will not affect the functionality of your code. They can be useful when someone have access to your code, your classmate, your teacher or even you in the future, because it is much easier to read a comment than a block of code and try to understand what it does.
Here in LearnC you will find the code well documented with comments.
Short comments start with a
//, they are in a single line. It’s better to see it than explain it, so here they are:
Long comments or block comments start with a
/* and end with a
*/, every character inside of them is consider part of the comment, let’s see it: