Loading...

algogeeks@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [algogeeks] difference b/w static global variables and global variables rajat ahuja Sat Feb 25 10:00:13 2012

Scope might be diferent if u define static in function . it will be
intilaized once when u call it first time but scope of that variable will
be limited to that function only but they live throught out the programe
though scope is limited
in case of global it can be used in ny function

On Sat, Feb 25, 2012 at 10:35 PM, Akanksha . <[EMAIL PROTECTED]> wrote:

> Global variable are accessible from other file as well but static global
> variables are only accessible in that particular file.
>
>
> On Sat, Feb 25, 2012 at 10:21 PM, AMAN AGARWAL <[EMAIL PROTECTED]>wrote:
>
>> Hi ,
>>
>> Is there any difference b/w static global variables and global variables
>> ???
>>
>> (apart from that static variables will be limited to that file only and
>> global variables will be visible for other files also.)
>>
>>
>> Regards,
>> Aman.
>>
>> --
>> AMAN AGARWAL
>> "Success is not final, Failure is not fatal: It is the courage to
>> continue that counts!"
>>
>> --
>> 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.
>>
>
>  --
> 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.
>

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