Jump to

v03-l2-findOutput

What is the output of this code ?

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

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

???