Re: bout global variables
Ashish <[email protected]> Mon, 23 May 2005 23:17:36 -0700 (PDT)
| Newsgroups | gmane.comp.programming.cppug |
|---|---|
| Message-ID | <[email protected]> |
Ganesh, If your function is called from some other file then??? As you have declare the varibale as static in the file. Ashish --- Ganesh N <[email protected]> wrote: > Hi, > > You can declare the variables as 'static' and > write functions also in the same file. Call the > functions (function may just returning the static > variable's value) from your files. It will be more > secure than declaring the variables as 'global'. (Of > cource not completely secure). > > regards, > > Ganesh > > 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.. > > > ________________________________________________________________________ > Yahoo! India Matrimony: Find your life partner > online > Go to: http://yahoo.shaadi.com/india-matrimony > > > --------------------------------- > 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 the > Yahoo! Terms of Service. > > > > --------------------------------- > Yahoo! Mail Mobile > Take Yahoo! Mail with you! Check email on your > mobile phone. __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail 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/