Re: Paasing global variables to functions
- From: "Alipha" <aliphax@xxxxxxxxxxx>
- Date: 28 Jul 2005 07:32:58 -0700
ankisharma@xxxxxxxxx wrote:
> At many places I have seen that programmers pass global variables
> to functions in c. I am not able to figure out why they do so. need
> some clues on this. somewhere i heard that this philosophy is from
> object orieted world but is it applicable for c?
for instance, the function is called multiple times with different
arguments than that specific global variable. eg:
f(myglobal);
f(mylocal);
f(myglobal2);
.
- Follow-Ups:
- Re: Paasing global variables to functions
- From: Emmanuel Delahaye
- Re: Paasing global variables to functions
- References:
- Paasing global variables to functions
- From: ankisharma
- Paasing global variables to functions
- Prev by Date: Re: Big Endian
- Next by Date: Re: malloc modifying a passed string
- Previous by thread: Re: Paasing global variables to functions
- Next by thread: Re: Paasing global variables to functions
- Index(es):
Relevant Pages
|