John Levon <[EMAIL PROTECTED]> writes: | > (or is this only static variables at file scope?) | > | > Lgb | > | | Is this a c++ thing ? No. Try this: #include <stdio.h> static int test1; int test2; int main() { int test3; printf("test1: %d\n", test1); printf("test2: %d\n", test2); printf("test3: %d\n", test3); } With both C and C++ compilers. Lgb
- [cpptips] a little initialization gem (fwd) Baruch Even
- Re: [cpptips] a little initialization gem (f... Asger K. Alstrup Nielsen
- Re: [cpptips] a little initialization ge... Lars Gullik Bjønnes
- Re: [cpptips] a little initializatio... John Levon
- Re: [cpptips] a little initializ... Lars Gullik Bjønnes
- Re: [cpptips] a little init... John Levon
- Re: [cpptips] a little ... Lars Gullik Bjønnes
- Re: [cpptips] a lit... John Levon