functions to store dinamic array size in given pointer
functions to print and build/setup the array