1.

C Comments

Answer»

C COMMENTS
Comments are used to provide some information about lines of code. Which helps developer to understand later on why this code is written or do some other information BIND with that code. Or in another language we can say that it is widely used for documenting code. There are 2 TYPES of comments in C language.
(1)Single Line Comments
(2)Multi-Line Comments

(1)Single Line Comments

Here in Single Line Comments which is REPRESENTED by double slash . In below EXAMPLE we have given example for single line comments.


C Single Comments
Output:-
Hello Welcome

Here in above code we can also add comments in single line with code too as given below


C Comments Code

(2)Multi Line Comments

Here we will write multi line comments which is represented by slash asterisk * ..... * . Here this will occupy many lines of code. But it will not have nested syntax.


MultiLine Comments
Output:-
Hello Welcome


Discussion

No Comment Found