@Vinil
Is the answer to your image 3,3 ?
Also for the above question my doubt is we can easily find x=7 in the same block, isn't it ?
So why are we printing x=6, because if we consider the memory model diagram, we can clearly see that, x = 6 is lost at line 1.
So why at lne 2 x is not considered at 7, why the answer is x=6 at line 2, can you explain with a memory model diagram, considering the memory stack.
PS : Thanks for replying