scope of a for loop

what is the scope of i in for (int i = 0; i < Length; i++) { }?
does it only exist within the for loop? if i want i to be used outside, i need this right?
i = x
for (int i = 0; i < Length; i++) { }


this would break?
for (int i = 0; i < Length; i++) { }
x = i
Was this page helpful?