Possible Duplicate:
What is the difference between a definition and a declaration?
I am trying to thoroughly understand "defining" and "declaring" in C.
I believe x
here is defined, since external variables are automatically initialized to 0, and something that's declared and initialized is defined. Is that accurate?
int x;
main() {}
According to one x
in this case is a definition, but why? It is not being initialized...
int print_hello()
{
int x;
}