Comments in C


Now we will know about Comments Lines in C in easy and our sort technic:-
  • In C languages Comments are used to describe the process of program to easily understand the program.
  • In the C Programming Language, you can place comments in your source code that are not executed as part of the program.
  • 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.

Syntax:- 
/* This is comment line*/ (Single line comment)
                                             Or 
 /*  This is comment line
           * in this C tutorial                            [Multiline comment]
           * By Justhack
         */               



C Comments are of Two Types :-
1-Single Line
2-Multi Line
Read about type of Comments in brief.

                  
Comments in C Comments in C Reviewed by ANAND PANDEY on 7:14:00 AM Rating: 5

No comments:

Created By Anand Pandey. Powered by Blogger.