Vidyalelo
C++ Programming · Q201

Classes and Objects in C++

Programming · C++ Programming · question 201

Q201

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

A.
11
B.
12
C.
13
D.
14
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board