|
|
|
|
|
by Kenji
3409 days ago
|
|
I'm sorry, but the answer this website gives to 1. is wrong. See for yourself: 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. |
|