1000 20 1000
will be the output
the address of p is 1000 which is passed to fun function .
**q is a pointer to pointer so at position 2000(address of q)will contain
1000
**q=r,will modify the value of position pointed by p,therefore *p will become 20
and as address of p is 1000,1000 will be printed