Array of pointers and dinamically generated.

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.