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