Jump to

v03-l1-findOutput

What is the output of the following code ?

#include <iostream>
using std::cout, std::endl;

int i = 0;
int main() {
    int i = 1;
    {
        i += 2;
        int i = 2;
    }
    cout << i << endl;

}

???