About Me

header ads

Comments in C Programming



COMMENTS:-
Comments in any programming languages are used to enhance the readability of the program .
There are two types of comments in c.

1 :- SINGLE LINE COMMENTS:
Single line comment can be inserted as follow :
// this is typical example of single line comment//

2 :- MULTIPLE LINE COMMENTS :-
Multiple line comments can be inserted as follow
/*this is a
Typical example of
Multiple line comments*/

EXAMPLE:
// program to print welcome message in c

#include<stdio.h> //pre processor directive
Void main()        //function reading
{
printf(“welcome to c programming language”)

}      //main() end with end compound statement