how to return an integer array from a function in c++ code example Example: return array of string in function c++ delete[] names;