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 the C language.
Single Line CommentsSingle line comments are represented by double slash \\. Let's see an example of a single line comment in C. Output: Hello C Even you can place the comment after the 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 a multi-Line comment in C. Output: Hello C
Next TopicFormat Specifier in C
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week