1) yes, you can return reference to an internal static variable, but instead
of heap it would be on data segment. Also, that reference should be used by
the function defined in the file(I am not sure of it).
2) Yes. we do it all the time.

On Tue, Aug 3, 2010 at 7:38 PM, Raj N <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>
-- 
Regards,
Abhishek Shrivastav

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to