Rajnish Tiwari wrote:

In C, I have the following declaration:

int foo()
{
  char* bar;


};

If unitialised, what the the value of variable "bar" ?

printf("%x",bar);

Will it get initialised to 0 or be a random value ?

see above

Is the value allocated at runtime or compile time ?

what value? you did not initialise bar.


cheers rickw

--
_________________________________
Rick Welykochy || Praxis Services

For years, Microsoft has had a policy of announcing products that don't
exist yet, to cause customers to stop buying a competitor's product.
That's Vapourware.  Is it really any shock that they would want to prevent
customers from using more robust OSs and tools, by offering Vapoursecurity?
     -- David Maxwell on Full Disclosure

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to