Comments
- What is used to write multi line comment in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The /* is used to write the multi line comment.
- What is the output of this program?
#include
using namespace std;
int main()
{
/* this is comment*\
cout << "Interview Mania";
return 0;
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Because the slash should need to be forward not backward.
- What type of comments does c++ support?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
multi-line and single line
- What is a comment in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Comments are used to add meaning to the program.
- How many types of comments are there in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
There are two types of comments. They are double slash and slash started.