Max value in array

here also i m getting garbage value whereas the code is working perfectly fine on ide

what is your code…