Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Differences between default initialisation

0 views
Skip to first unread message

Angus

unread,
Nov 1, 2009, 5:48:40 AM11/1/09
to
Hello

In C++ global and static variables (primitive) are zero initialised.
But member and local variables are not. Is this standard for other
languages? Why?

Angus

Bo Persson

unread,
Nov 1, 2009, 9:43:53 AM11/1/09
to

This is all inherited from the C language.

Old C code, compiled as C++, should behave the way it used to -
especially performance-wise.


Bo Persson


Victor Bazarov

unread,
Nov 1, 2009, 9:49:14 AM11/1/09
to

How TF should we know? Ask in "other languages" newsgroups.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask

paperab

unread,
Nov 2, 2009, 7:41:05 PM11/2/09
to

Does exist other languages ?

0 new messages