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; }

  1. A.

    10

  2. B.

    11

  3. C.

    12

  4. D.

    13

Attempted by 8 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…