Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

  1. What is the output of this program?

    #include < iostream >

    using namespace std;

    #define PR(id) cout << "The value of " #id " is "<

    int main()

    {

    int i = 10;

    PR(i);

    return 0;

    }

  2. A.
    10
    B.
    15
    C.
    20
    D.
    none of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    In this program, we are just printing the declared values.


Be The First To Comment