( NevemTeve | 2023. 01. 02., h – 16:58 )

Határeset:

for (i=0, found=-1; found==-1 && i<N; ++i) {
    if (...) found= i;
}