when i run the program in cint *ptr;ptr=new int;*ptr=5;cout<<(*&ptr)<<endl;cout<<ptr<<endl;cout<<(*ptr)<<endl;cout<<(&*ptr)<<endl;delete ptr;It gives the output as0x8d200080x8d2000850x8d20008but as in this tutorial it is written that it is not right to write &*p=p;but the above result shows that its right???

Thanks a lot for such an excellent clear concept. Really,sir....u r the master...sir i have small doubt in line[printf(“%d %d %d”.x.*ptr,**temp); ] is it .x. Or ,x, i.e [ printf(“%d %d %d”,x,*ptr,**temp);