In the first printf, Address of operator (&) and pointer operator (*) cancel the effect of each other leading to printing the address in ptr which contains the address of a
In the second printf, it is simply printing the address of a
So these two results in same value