int* getArray() { static int array[LENGHT] = {1, 2, 3, 4, 5}; cout << "array in getArray()" << endl; printArray(array); return array; }