c++ return array of integers from function code example Example: return array of string in function c++ delete[] names;