Examveda

What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main ()
{
    int x, y;
    x = 5;
    y = ++x * ++x;
    cout << x << y;
    x = 5;
    y = x++ * ++x;
    cout << x << y;
    return 0;
}

A. 749735

B. 736749

C. 367497

D. 367597

Answer: Option A


Join The Discussion

Related Questions on Operators and Expressions in C plus plus