I can not understand the syntax of the syntax. For instance,
float f=7.0; short s=*(short *)&f;
What happens here short s=*(short *)&f ? It looks like we throw something as a pointer to a short one and then initialize s to the value stored in the address pointed to by something .
Now this something looks like the address of the variable f . Therefore, if something = address of f , it seems to me that we are doing address of f as a pointer to some short one, and then de-link to it. I know that what I said is wrong, but I just can't imagine it.
Thanks.
source share