Primitive constructors vs casting for conversion

Posted by peter on Stack Overflow See other posts from Stack Overflow or by peter
Published on 2010-03-16T03:07:51Z Indexed on 2010/03/16 6:16 UTC
Read the original article Hit count: 219

Filed under:
|
|

What is the difference between:

long myLong;
float myFloat = (float) myLong;

and:

float myFloat = float(myLong);

© Stack Overflow or respective owner

Related posts about c++

Related posts about casting