Is this function functional? Tips would be appreciated | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is this function functional? Tips would be appreciated

// returns index of the biggest member int max(int *a, int n){ int max = a[0], i, id; for(i = 0; i < n; i ++) if(max < a[i]) { max = a[i]; id = i; } return id; }

17th Feb 2019, 6:44 PM
Mehmetçik
Mehmetçik - avatar
1 Answer
+ 1
Appreciate it 👍
17th Feb 2019, 7:33 PM
Mehmetçik
Mehmetçik - avatar