Well .. i = * ( long * ) &y
&y - gives the address of y variable
( long * ) &y - is casting that float address to an address of type long
* ( long * ) &y - gets the value using our new pointer of type long
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: some q3 codeThreaded View
|
Click Here to Expand Forum to Full Width |