What are the two types of comment styles in C++?

What will be an ideal response?


The two types of comment styles in C++ are single line comments which begin with two forward slashes, such as //this is a comment.
The second type of comment is used with multi-lined comments. The format has a /* at the beginning of the comment and a */ at the end of it.

Computer Science & Information Technology

You might also like to view...

How many and what kind of variables (primitive or object) are created in the code below?

``` > World worldObj = new World(); // worldObj is an object variable > Turtle turtle1 = new Turtle(worldObj); // turtle1 is an object variable > turtle1.forward(30); > Turtle turtle2 = new Turtle(worldObj); // turtle2 is an object variable > turtle2.turnRight(); > turtle2.forward(30); ```

Computer Science & Information Technology

Detail data refers to the subtotaled rows that are totaled and summarized

Indicate whether the statement is true or false

Computer Science & Information Technology

Where is the preferred location to store your favicon image?

What will be an ideal response?

Computer Science & Information Technology

Which of the following incident response procedures BEST allows Sara, the security technician, to identify who had possession of a hard drive prior to forensics analysis?

A. Chain of custody B. Tracking man hours C. Witnesses D. Capturing system images

Computer Science & Information Technology