Answers for "program to find largest in array and index in c++ gfg"

C++
2

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 "program to find largest in array and index in c++ gfg"

Browse Popular Code Answers by Language