pointer variable is not working in cout function in cpp : I have written a code in c++ to check the variable increment (Screenshot added). In line 13 when i use "++x" in printing function to print the value of x and y. The value I'm getting is not equal but the memory address are same.
In line 17 I've incremented y as ++y and I got my expected equal ans (Screenshot added) [My Code Screenshot][1]. 
What is the reason for not getting the unexpected ans in line 13?


  [1]: https://i.stack.imgur.com/mwCBW.png