Computer Science, asked by pavannagireddy6040, 8 months ago

Which of the following is a correct way
of making comments in C?
/ my comment / *
<!-- my comment -->
# my comment #
my comment​

Answers

Answered by sahilyadav8
3

Answer:

A comment starts with a slash asterisk /* and ends with a asterisk slash */ and can be anywhere in your program. Comments can span several lines within your C program. Comments are typically added directly above the related C source code.

Answered by kavyapsynergy
0

None of the above is a correct way of making comments in C

Comments in C

A comment is an explanation of the program's source statements. It increases the readability of the software.

In the C programming language, comments can be single-lined or multi-lined.

  • In C two forward slashes (//) start single-line comments. The compiler ignores any content between / and the end of the line (will not be executed).
  • In C comments span multiple lines beginning with /* and ending with */. The compiler will ignore any content between /* and */.

Similar questions