91-9990449935 0120-4256464 |
Comments in CComments in C language are used to provide information about lines of code. It is widely used for documenting code. There are 2 types of comments in C language.
Single Line CommentsSingle line comments are represented by double slash \\. Let's see an example of single line comment in C. Output: Hello C Even you can place comment after statement. For example: Mult Line CommentsMulti line comments are represented by slash asterisk \* ... *\. It can occupy many lines of code but it can't be nested. Syntax: Let's see an example of multi line comment in C. Output: Hello C
Next TopicEscape Sequence in C
|