Đặng Thị Mỹ Linh
New member
What will be the output of the following C++ code?
A. 11
B. 12
C. 13
D. 14
Code:
#include <stdio.h>
#include<iostream>
using namespace std;
int main()
{
int x = 5, y = 5, z;
x = ++x; y = --y;
z = x + ++x;
cout << z;
return 0;
}
B. 12
C. 13
D. 14