I have been searching for awhile but I unable to see the syntax error. I feel like I am blind.
I am getting a syntax error at the start of the if statement.Code:double max_arr(const double ar[], int n) { int i; double max = ar[0]; if(i = 0; i < n; i++) if(max < ar[i]) max = ar[i]; return max; }
Thanks for helping.