Output of the below program

#include < iostream >
using namespace std;

int main ()
{
    int i;
    cout << \"Please enter an integer value: \";
    cin >> i + 4;

    return 0;
} 

(A) 73
(B) your value + 4
(C) Error
(D) None of the mentioned


Answer: (C)

Explanation: We are not allowed to do addition operation on cin.

Quiz of this Question


  • Last Updated : 19 Nov, 2018

Share your thoughts in the comments