On Sat, 5 Sep 1998, Marin D wrote:

-As u havent included any example I would suppose the situation is as
-follows:

[SNIP!]

-
-Am I right? If so just change do_change to
-
-void do_change(int* x, int y)
-
-do_change(&global,100);

Noooo, wrong. BZZZT. It's a GLOBAL variable... just re-assign data to it,
like you would with local variables...

global = 2;

do that ANYWHERE in the code and it will assign 2 to global.

* I would have thought the concept of local variables and scope more 
  complex than global variables *


-- 
+++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++
[EMAIL PROTECTED]                    http://x-map.home.ml.org

Reply via email to