Prashant | Tue, 09 Jun, 2020 | 142
Comments are simple lines which are excluded from compiler to check, Comments are simply for coders understanding that tells you why a particular line of code is written by someone.
Comments provide clarity to the C source code allowing others to better understand what the code was intended to accomplish and greatly helping in debugging the code. Comments are especially important in large projects containing hundreds or thousands of lines of source code or in projects in which many contributors are working on the source code.
A comment starts with a slash asterisk
/* and ends with a asterisk slash
*/ and can be anywhere in your program. Comments can span several lines within your C program. Comments are typically added directly above the related C source code.
Adding source code comments to your C source code is a highly recommended practice. In general, it is always better to over comment C source code than to not add enough.
You can create single line comment and multi line comment.
Single line comment goes like:-
/* Author :- Selfcode (Prashant) */
And multi line comments goes like : -
/* this is mulitiline comment */
8. Tokens In C
11. Variables In C
15. Constant In C