I was extremely surprised that the following C-code compiles:
int foo() {
int x = x;
return x;
}
Is this guaranteed to compile? Is the value of x
defined after the assignment (it was zero when I tested in GCC)?
I was extremely surprised that the following C-code compiles:
int foo() {
int x = x;
return x;
}
Is this guaranteed to compile? Is the value of x
defined after the assignment (it was zero when I tested in GCC)?