int i;
int i = 10;
int main(int argc, char* argv[]){
return 0;
}
Try to compile it. It doesn't work (gcc.exe (GCC) 5.3.0), the error is: a.cc:2:5: error: redefinition of 'int i'
int i = 10;
^
a.cc:1:5: note: 'int i' previously declared here
int i;
^
Either I misunderstood the author and this example, or I do know C.