Assuming your system has 2 ethernet devices, eth0 and eth1 and eth0 is connected to your LAN, say IPs 192.168.1.X and your eth1 device is connected to your ISP (WAN) you're going to want to use the following ifconfig command to get your IP for the WAN side.
NOTE: The 1st 2 ways assume that you'r...
@Braiam if ptr2 was the only thing pointing to ptr1 and ptr1 was the only thing pointing to a piece of allocated memory, then you've lost the last reference to the last reference to that piece of memory. Welcome to memory allocation hell. Study and use the various standard pointer classes that help you cope with this sort of thing.
@Braiam they then spend some time saying how elementary it is and how people asking it should go away and study some more. Which is fair enough, in this case. It really is an elementary question :-)