+ 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 ответ
+ 1
Appreciate it 👍
17th Feb 2019, 7:33 PM
Mehmetçik
Mehmetçik - avatar