After re-reading his statements, he wants to know if the presence of a statement such as break in the loop would cause the index variable to be reliable after the loop ends no matter how it ended. The answer is: NO
The presence of a break (or goto) in the "for" is not enough. The break or goto has to be executed, i.e, terminate the loop, for the index value to be reliable.
Using exit(index_variable) inside the loop should reliably return the value of the index variable as long as the "exit(index_variable)" is executed inside the loop. exit(index_variable) is just shorthand for assigning the value of the index variable to "result" then executing "exit".
As others have already stated, if the loop completes, the value of the index variable is undefined. It doesn't matter if there are break, gotos or black holes to China in the loop, as long as it completed normally, the value of the index variable is undefined.