Paasing global variables to functions



Hi all

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?

.



Relevant Pages

  • Re: Paasing global variables to functions
    ... > At many places I have seen that programmers pass global variables ... somewhere i heard that this philosophy is from ... Richard Heathfield ...
    (comp.lang.c)
  • Re: Paasing global variables to functions
    ... > At many places I have seen that programmers pass global variables ... the function is called multiple times with different ... Prev by Date: ...
    (comp.lang.c)
  • Re: Paasing global variables to functions
    ... >> At many places I have seen that programmers pass global variables ... better to avoid global scope variables at all... ... Prev by Date: ...
    (comp.lang.c)
  • Re: Cool visual illusion
    ... Whether philosophy DOES or not may be another matter, ... REAL programmers are smart enough to know that once they have the design -- ... >> I am not going to build a brain to do AI. ...
    (comp.ai.philosophy)
  • Re: vms versus solaris
    ... > quite a few of them also somewhat more technically current than RMS is ... It appears to me that everyone here fails to understand the philosophy ... erroneous format, this is quickly identified as an error, before passing ... I have been told several times by programmers, ...
    (comp.os.vms)