Find The Maximum Number From An Int Array

[Solved] Find The Maximum Number From An Int Array | Basic - Code Explorer | yomemimo.com
Question : max element in array

Answered by : amused-anaconda-xpsbqjfvrcac

int max;
max=INT_MIN;
for(int i=0;i<ar.length();i++){	if(ar[i]>max){	max=ar[i]; } 

Source : | Last Update : Fri, 16 Oct 20

Answers related to find the maximum number from an int array

Code Explorer Popular Question For Basic