Need help in Global variable in c
- From: "yinglcs@xxxxxxxxx" <yinglcs@xxxxxxxxx>
- Date: Sun, 30 Sep 2007 16:20:32 -0000
Hi,
I read this article about global variable in c:
http://www.phim.unibe.ch/comp_doc/c_manual/C/SYNTAX/glo_int_vars.html
But I have a few questions
1. how can I declare the global variable so that it can be set/get by
other files?
2. If I have multiple instance of the same program running in the same
machine (linux), will each program instance has its own of global
variable?
Thank you.
.
- Follow-Ups:
- Re: Need help in Global variable in c
- From: jacob navia
- Re: Need help in Global variable in c
- From: Mike Wahler
- Re: Need help in Global variable in c
- Prev by Date: Re: Help ! how to get a file size larger than 2G?
- Next by Date: Re: Macro for supplying memset with an unsigned char
- Previous by thread: definition/explanation of an unboxed array in c is ...?
- Next by thread: Re: Need help in Global variable in c
- Index(es):