PaulS:
Why define f as (effectively) an array of pointers to int? It seems much more likely that an array of ints (not pointers to ints) is what OP was looking for.
My english is not very good, as you can see...
I can't understand very well your message...
I'll send it to a friend for help.
Thanks.