Hello all,
Suppose I have a big function F() which calls several sub-functions,
Now, the integers A, B and C are not globals. But is it possible to make them act like globals for every function called inside F()? i.e. for every function called by F() to know of their existence without having to pass either the variables or pointers to them?
Cheers,
-- Joe
Suppose I have a big function F() which calls several sub-functions,
Code:
void F(int A)
{
int B, C;
/* B and C are defined, then, */
f1();
f2();
f3();
}
Now, the integers A, B and C are not globals. But is it possible to make them act like globals for every function called inside F()? i.e. for every function called by F() to know of their existence without having to pass either the variables or pointers to them?
Cheers,
-- Joe