Yeah its working now, thanks a lot for help - even if it was probably one of the most basic problems you've seen on these boards xD
Code:#include "stdafx.h" #include <iostream> using namespace std; int main () { int NumEls[5] = {23, 54, 29, 35, 40}; int * pVals; pVals = NumEls; int max = NumEls[0]; for (int i = 1 ; i < 5 ; i++ ) { if (max < NumEls[i]) max = NumEls[i]; } cout << "Maximum element in the array : " << max; return 0; }