{}
CODE VISUALIZER
Learn DSA the way it should be — with step-by-step code visualization.
Try now!
CODE VISUALIZER
Learn DSA with step-by-step code visualization.
Try now!
run-icon
main.c
#include <stdio.h> union { int i; float f; } u; int main() { u.i = 37; printf("%d\n", u.i); // 37.000000 u.f = 37; printf("%f\n", u.f); // 37.000000 u.i = 37; printf("%f\n", u.f); // 0.000000 return 0; }
Output