Help me in solving PPSCPP29 problem

My issue

i didn’t understand why x becomes 3 ?

My code

9729

Learning course: Introduction to C++
Problem Link: Multiple choice question Practice Problem in Introduction to C++ - CodeChef