how to intialize an array and create new arrays using a function in c++ code example Example: C++ declar array int foo [5];