"vsgdp" <cl********@yahoo.comwrote in message
news:11**********************@q40g2000cwq.googlegr oups.com...
Hi,
#include <iostream>
int main()
{
std::cout << float() << std::endl;
}
Outputs 0, is this standard or implementation defined?
Standard.
Is float() a
default constructor for float?
The expression 'float()' creates a temporary,
'default-initialized' object of type 'float'.
Built-in types don't really have constructors,
but the same syntax is used for expressing a
default-initialized object of any type.
-Mike