how to find max value in a array
Max value in a array
Hi Mukesh. To find the max element of array, take a variable max and intialise it with arr[0] or with INT_MIN. And then compare it with every element using a for loop.
how to find max value in a array
Hi Mukesh. To find the max element of array, take a variable max and intialise it with arr[0] or with INT_MIN. And then compare it with every element using a for loop.