Thanks for the replies :)
Printable View
Thanks for the replies :)
Yes. That's where it came from. This is more accurately called 'type coercion'. Because you are coercing a type to some other type (to fool the compiler).Quote:
Can you do type casting in C??
Casting/Coercion is all about how you want the compiler to view the data-- it has nothing to do with the data itself.
are you sure it's just in the way that the compiler views it? I think it must change the way the data is represented, somewhere, temporarily, because I've read in documents on optimizing 3D math that type casting is slow...