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