28.4k views
1 vote
In a C++ program, two slash marks ( // ) indicate:

A.
The end of a statement

B.
The beginning of a comment

C.
The end of the program

D.
The beginning of a block of code

1 Answer

4 votes

Answer:

The option(B) is the correct answer .

Step-by-step explanation:

In C++ the // (two slash marks ) indicating the beginning of a comment .The two slash marks ( // ) comment the single line in a program.To use two slash marks ( // ) comment we simply write // in which line we have to make comment.

following are the example of code in c++

#include<iostream.h> // header file

void main() // main method

{

cout<< " india"; // print india

}

here // indicating the beginning of a comment .

User Gigisommo
by
8.3k points