Trying to understand how the casting/conversion is done by compiler,e.g., when cast from float to int
问题 When a float is casted to int, how this casting is implemented by compiler. Does compiler masks some part of memory of float variable i.e., which part of memory is plunked by compiler to pass the remaining to int variable. I guess the answer to this lies in how the int and float is maintained in memory. But isn't it machine dependent rather than compiler dependent. How compiler decides which part of memory to copy when casted to lower type (this is a static casting, right). I am kind of