> i + 4;return 0;}"/>
Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

  1. What is the output of this program?

    #include < iostream >

    using namespace std;

    int main ()

    {

    int i;

    cout << "Please enter an integer value: ";

    cin >> i + 4;

    return 0;

    }

  2. A.
    73
    B.
    your value + 4
    C.
    Error
    D.
    None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    We are not allowed to do addition operation on cin.


Be The First To Comment