Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
strict aliasing
#include <stdio.h> // -O0 will print 6 // -O1 will print 6 // -O2 will print 5 // -O3 will print 5 void check (int *h, long *k) { *h = 5; *k = 6; printf("%d\n", *h); } int main (void) { long k; check((int *)&k, &k); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Power of an element
weak_ptr and Circle_reference
google
temp_new
Synchro#1
swastic
Straight Max-Min Divide and Conquer
javascript style arrays in c++
A string-integer comparison trick
VirtualResto
Please log in to post a comment.