Yes, both the cases are true because in both the cases memory is allocated outside the functions internal memory. But just want to know why do you need to return reference of a static variable.
On Tue, Aug 3, 2010 at 7:38 PM, Raj N <rajn...@gmail.com> wrote: > 1) Can we return a reference to an internal static variable in a > function ? > 2) Can we return a reference to a dynamic variable variable in a > function ? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- Dinesh Bansal The Law of Win says, "Let's not do it your way or my way; let's do it the best way." -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@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.