Thank u swathi for making me clear about static variables.
Sanju :) On Wed, Aug 31, 2011 at 9:10 AM, Swathi <chukka.swa...@gmail.com> wrote: > Google it.. you will find the answer, > > http://www.velocityreviews.com/forums/t443436-where-is-a-static-variable-stored.html > > > > On Wed, Aug 31, 2011 at 9:35 PM, Sanjay Rajpal <srn...@gmail.com> wrote: > >> Static variables are always stored in the data section. >> >> >> Sanju >> :) >> >> >> >> On Wed, Aug 31, 2011 at 9:04 AM, Swathi <chukka.swa...@gmail.com> wrote: >> >>> C standard doesn't define where static variables has to be stored. All it >>> says is to persist the data across the multiple function calls. So I think >>> the answer varies based on the compiler implementation but printing all >>> zeros makes more logical. >>> >>> >>> On Wed, Aug 31, 2011 at 9:25 PM, rohit <raman.u...@gmail.com> wrote: >>> >>>> +1 to chris >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Algorithm Geeks" group. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msg/algogeeks/-/fzTBEIWLGcAJ. >>>> >>>> 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 >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>> >>> -- >>> 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 >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> -- >> 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 >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > 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 > http://groups.google.com/group/algogeeks?hl=en. > -- 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 http://groups.google.com/group/algogeeks?hl=en.