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; }
0
1
2
3