Fixed What is the strict aliasing rule? #dev #it #asnwer
Fixed What is the strict aliasing rule? #dev #it #asnwer
What is the strict aliasing rule?
When asking about common undefined behavior in C, souls more enlightened than I referred to the strict aliasing rule. What are they talking about?
Answer: What is the strict aliasing rule?
As addendum to what Doug T. already wrote, here is a simple test case which probably triggers it with gcc :
check.c
#include void check(short *h,long *k) { *h=5; *k=6; if (*h…
View On WordPress















