Hi
i am trying to call this search function in the main,
however i get an error for the following:Code:int search(int a[], int v, int l, int r) { int i; for (i = l; i <= r; i++) return i; return -1; }
if (v == a[i])
i am not sure why i get that error
thnx