TRENDING TOPICS

×

How to use the multiline comment in C?

By: Juli Singh | 03 February 2020

N

Nagvivek

06 February 2020

/**/

1 votes

A

Amit Singh

08 February 2020

Multiline comment in C

In C programming, the multiline comment can be used in two ways...

  • As a single-line comment
  • As a multiline comment

To use multiline comment just you have to put all code between /* and */ symbols, either it is in a single-line or in multiline. For example

/* this is a multiline comment in a single line */

printf("Hello word");

Output

Hello word

---------------- As multiline --------------

int a=20, b=30, c=0

/* c=a+b

printf("sum=%d",c); */

c=b-a

printf("Sub=%d",c);

Output

Sub=10

I hope it is helpfull ?????????

1 votes

N

Nagvivek

06 February 2020

/*  */

0 votes

Your Answer

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at "advertise@gdatamart.com"

© 2021 GDATAMART.COM (All Rights Reserved)