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

Discussion :: C++ - MCQs

  1. What is the output of this program?

    #include

    using namespace std;

    int main()

    {

    int  const  p = 5;

    cout << ++p;

    return 0;

    }

  2. A.
    5
    B.
    6
    C.
    Error
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    We cannot modify a constant integer value.


Be The First To Comment