Re: [algogeeks] why only static and global variables have default initial value 0.....why not automatic variables have???

2011-09-29 Thread saurabh singh
The global and the static variables are stored in the data section. But the only legitimate answer that comes to my mind is that the makers believed there language will be used by smart coders so they left it for the programmers to fix. While the java makers believed somewhat different so they

Re: [algogeeks] why only static and global variables have default initial value 0.....why not automatic variables have???

2011-09-29 Thread prasanth n
may be bcoz they(auto) are stored in stack On Thu, Sep 29, 2011 at 10:05 PM, tech rascal wrote: > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from t

[algogeeks] why only static and global variables have default initial value 0.....why not automatic variables have???

2011-09-29 Thread tech rascal
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at ht