simple c program to store addresses