The only thing you ever read from exam.txt is the length. You must also read all the values from the file into your exam[] array.
Also, if you're going to pass the array and exam[] length as the parameters to your functions, you may define those variables inside main instead of globally.
I imagine your debugger is playing nicely and zeroing out the memory for you. In other words, exam[] is full of zeroes without you explicitly doing it. So findMax and findMin are operating on an array full of zeroes.