scope Q

Ranjan S Muttiah muttiah at stable.ecn.purdue.edu
Sat Apr 20 01:19:59 AEST 1991


/* Is there some way I can control the scope of a variable within
a file ?  Something similar to #undef when using #define */

int a,b;

fn1(..)
{
....
}

fn2(..)
{
....
}

/* beep beep, useful life of a is over */

fn3()
{

a = 5;  <- undefined variable: a
...
}



More information about the Comp.lang.c mailing list