int main()
{
extern int i;
i=20;
printf("%d\n",i);
}
hi..
actually this is asked to me today. In this no i is defined anywhere. only declaration is given in main(). then i was asked when the error will come ?
like is it segmentation fault, linking error, complilation error or what ? And why ? thanks. I was damn confused while thinking for this. thanks.