Comments


  1. What is used to write multi line comment in c++?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The /* is used to write the multi line comment.


  1. What is the output of this program?
    #include 
    using namespace std;
    int main()
    {
    /* this is comment*\
    cout << "Interview Mania";
    return 0;
    }











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Because the slash should need to be forward not backward.



  1. What type of comments does c++ support?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    multi-line and single line


  1. What is a comment in c++?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Comments are used to add meaning to the program.



  1. How many types of comments are there in c++?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    There are two types of comments. They are double slash and slash started.