Possible Duplicate:
Why are global and static variables initialized to their default values?
See the code,
#include <stdio.h>
int a;
int main(void)
{
int i;
printf("%d %d\n", a, i);
}
Output
0 8683508
Here 'a' is initialized with '0', but 'i' is initialized with a 'junk value'. Why?