how to return array in c++ frmo function code example Example: return array of string in function c++ delete[] names;