Possible Duplicates:
C++ cast syntax styles
What is the difference between (type)value and type(value) ?
In C++, when explicitly converting one built-in type to another, you can write:
int x = (int)c;
int x = int(c);
int d = (double)f;
int d = double(f);
I known that (T)v
is a C-style cast, and I think the other syntax isn't technically a cast, but what is the other syntax called and what are its semantics? (And where to use which?)