Ans is 15 man…because for first prefix the x value is incremented an in the meanwhile for next prefix the x value is again incremented…and so for
first ++x:4
Second ++x:5
++x + ++x=9
and if ++x + ++x + ++x=15
Answer is 9 because of prefix operatot.First it will increment the value of x to 4 then print.then current value of x is 4 again it get incremented by 1…so 4+5=9.
Actually it depends on the compiler .On Dev C++ it gives 10 and on Turbo C++ the value is 9.