Can a ‘for’ loop inside of a ‘for’ loop use the same counter variable name?
You may use the same name (identifier). It will be a different object. They will not affect each other. Inside the inner loop, there is no way to refer to the object used in the outer loop (unless you make special provisions for that, as by providing a pointer to it). This is generally bad … Read more