Answers for "apply max function to all element of array"

C++
4

max element in array

int max;
max=INT_MIN;

for(int i=0;i<ar.length();i++){
	if(ar[i]>max){
    	max=ar[i];
    }
Posted by: Guest on October-09-2020

Code answers related to "apply max function to all element of array"

Browse Popular Code Answers by Language