Vidyalelo
C++ Programming · Q222

Classes and Objects in C++

Programming · C++ Programming · question 222

Q222

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++ + y--; cout << z; return 0;

A.
10
Answer
B.
11
C.
9
D.
12

Answer: Option A

Solution

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