Over range of k

if we traverse k from i to less than, equal to j and when we call function for (k+1,j), wont that give segmentation fault?
because k+1 index doesnt exist