scope Q
cs450a03 at uc780.umd.edu
cs450a03 at uc780.umd.edu
Sat Apr 20 09:28:45 AEST 1991
Ranjan Muttiah writes:
>/* 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
>....
Not really, but you could always do something like
#define a !@%$#@
Raul Rockwell
More information about the Comp.lang.c
mailing list