/* pointer_array_max_00.cpp * This program computes the maximum of * an array of length 3 using pointers. */ #include #include using namespace std; int *findMax(int array[],int n) { int *max=array; int i; for(i=1;i>array[i]; } p=findMax(array,n); cout<<"The max value is: "<<*p << endl; return 0; }