"regisser" <om******@hotmail.com> wrote in message
news:RY******************@fe09.usenetserver.com...
Is it true that cin,cout, etc are initialized on first use?
No. When 'main()' begins (and before any file scope constructors
are invoked), you are guaranteed that the 'standard streams' e.g.
'std::cin', 'std::cout', etc. have been initialized and are ready for use.
And that no runtime initialization before main is needed;
Exactly when and how the standard streams are initialized is
implementation-dependent, but they will be ready for use before
any file scope constructors or 'main()' begins.
the first time the object is
accessed,
... has no bearing upon anything.
it grabs dynamic memory typically like 1K of
memory?
The standard streams might or might not use 'dynamic memory',
that's implementation-dependent.
Where did you hear or read of the notions you describe?
-Mike