Small sample code to illustrate pointer iteration in C