S
sushant
according to the definition of declaration of a variable "the variable
is not allocated any space in the memory till it is defined".
so the code:
int main(void)
{
int x,*p;
p=&x;
printf("%p",p);
return 0;
}
should generate an error bcos x is only declared not defined... but
after executing the above code it was showing some address. the story
is not yet finished... after initialising x with some value , it was
showig the same address....
any answer for that....
is not allocated any space in the memory till it is defined".
so the code:
int main(void)
{
int x,*p;
p=&x;
printf("%p",p);
return 0;
}
should generate an error bcos x is only declared not defined... but
after executing the above code it was showing some address. the story
is not yet finished... after initialising x with some value , it was
showig the same address....
any answer for that....