Getting testcase 3 wrong

i am getting the testcase #3 as wrong answer
my code is
https://ide.codingblocks.com/s/52033

Hey Satvik, mention the problem’s name also.

the problem was to print the maximum element of an array

Hey, your code will not work if all the elements of an array are -ve. So, initialize your max variable with arr[0] instead of initializing it with 0.

oh yaa thank you so much