Computer Science, asked by Aaryanarora2531, 1 year ago

How can a comment be written in a C++ ?

Answers

Answered by manavjain87
0
https://goo.gl/search/How+can+a+comment+can+written+in+a+c+%2B%2B

C++ Programming/Code/Style Conventions/Comments ... Comments come either in block form or as single lines. Single-line comments (informally, C++ style), start with // and continue until the end of the line. If the last character in a comment line is a \ the comment will continue in the next line. Multi-line comments (informally, C style), start with /* and end with */ .

hope it helps u a lot plz mark me as a brain list
Answered by Anonymous
0

comment is used to describe some additional information about a statement or a block of statement in a program.

In c++ comment has two types:-

single lined comment - //...

multi lined comment - /*...*/

Similar questions