Iterations, Functions and Pointers in ANSI C