free hit counter

Tuesday, January 13, 2015

What Every C Programmer Should Know About Undefined Behavior #1/3

And I always thought this was a clever trick:

It is undefined behavior to cast an int* to a float* and dereference itLLVM Project Blog: What Every C Programmer Should Know About Undefined Behavior #1/3


I guess the little extra effort to create a union is worth it.

0 Comments:

Post a Comment

<< Home