For construct with pointers [SOLVED]