I saw the following code in the wild and I don't know what to make of it:
more or less:
int main(void)
{
int a = 0, v;
printf("%d\n", v);
}
This code with gcc will print out 0. At first I though, oh well that's because initialized local variables are assigned 0, but in this case I never declared the type of v...so what gives?