I understand that reinterpret_cast is dangerous, I\'m just doing this to test it. I have the following code:
reinterpret_cast
int x = 0; double y = reinterpret_c
Casting an int to a double doesn't require a cast. The compiler will perform the assignment implicitly.
The reinterpret_cast is used with pointers and references, e.g., casting an int * to a double *.
int *
double *