Programming, Computer Science, Programming Languages, C Programming, Python.
this is wrong! It’s because while calculating z, the very first operation that is performed is ++x, which increments the value of x to 4. So by the time condition (x+x) is performed x initial value has now become 4. Thus 4+4 is performed not 3+4. After this, the result ‘8’ is assigned to variable