#include <iostream>
using namespace std;
int main() {
int i;
for(i=0; i <= 11; i+=3)
cout << i;
cout << endl << i << endl;
}
output is: 0 3 6 and 9 and then once it exits the loop its 12. The addresses of i inside the loop and out appear the same
What I need to know is: Is the i inside the for loop the same as the i that was initialized outside the for loop because the variable i was first initialized before the for loops i was ever created?