135k views
4 votes
How to insert a comment that has more than one line?

a) /This comment has more than one line/
b) //This comment has more than one line//
c)
d) /*This comment has more than one line */

1 Answer

2 votes

Final answer:

To insert a comment that has more than one line, you can use the syntax: /* This comment has more than one line */

Step-by-step explanation:

To insert a comment that has more than one line in many programming languages, you can use the syntax:

/* This comment has more than one line */

Using the forward slash and asterisk characters at the beginning and end of the comment, you can write multiple lines of comments.

User Lars Werkman
by
8.4k points

No related questions found