Hi All,

In C, I have the following declaration:

int foo()
{
  char* bar;


};

If unitialised, what the the value of variable "bar" ?
Will it get initialised to 0 or be a random value ?
Is the value allocated at runtime or compile time ?

Am using gcc on both linux and solaris.

Any thoughts, suggestions, weblinks etc will be appreciated.
Thanks in advance.

Regards,
Raj

--
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