Answers for "Build a function that takes an array of integers as an argument and returns the largest their. Implement a C program to test the function."

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 "Build a function that takes an array of integers as an argument and returns the largest their. Implement a C program to test the function."

Browse Popular Code Answers by Language