Help me in solving SYNMCQ46 problem

My issue

I wasn’t able to understand why the answer came 3 here and not 2.

Learning course: Learn C++
Problem Link: CodeChef: Practical coding for everyone

Because first it print ‘‘c++’’ then it checks for condition i==4. So, when i will equal to 4, it will print c++ then check for condition to break the for loop