Re: bout global variables

Sarvex Jatasra <[email protected]> Tue, 24 May 2005 08:59:18 +0530
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>
> Basil Joseph <[email protected]> wrote:
> hi all,
>          its said that using global variables,is not
> good because of security probems.
> that is other files can also acces the variable.
> how can i acces a variable of another file by another
> file ...
> please explain with example..
> 

there is a keyword named "extern" in C, you need to know about that
keyword for accessing the variable in the other file...

Sarvex Jatasra


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cppug/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/