I have encountered the following code:
#include using namespace std; int i = 1; int main(int argc,char ** argv) { int i = i; cout&l
The int i = i; statement in main() declares a local variable that hides the global variable.
int i = i;
main()
It initializes itself with itself (which has an indeterminate value). So the global i simply isn't used.
i