What will be the output of the following C++ code ? int main() { int x = 5, y…
GSET 2025
What will be the output of the following C++ code ? int main() { int x = 5, y = 5, z; x = ++x; y = − −y; z = x++ + y− −; cout << z; return 0; }
- A.
10
- B.
11
- C.
12
- D.
13
Attempted by 8 students.
Sign up free to check your answer
Sign up freeLoading lesson…

