I need to return true only when the whole array is checked. it steps through the whole array checking if the number aheand of it is larger and will keep on going unitl the end. once a false condition is detected false will be returned
Okay, so you're having trouble with this line:
if (puzzle[row][col] > puzzle[row][col+1])
What's happening is that because you have 'puzzle[row][col]' those are being resolved to actual values, for instance, if puzzle [0][0] holds the value of 5, 5 is being returned, and if puzzle [0][1] holds 10, 10 is being returned for that, so the compiler sees it as:
if ( 5 > 10 )
I would recommend using the ROWS and row variables directly (not in the array). Then you'll get the actual element number that resides there.