- union
- {
- uint8_t b[8];
- double d;
- }
- x = { .b = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x4c, 0xdd, 0x40 } };
- printf ("%f\n", x.d);
+ uint8_t b[] = { 0, 0, 0, 0, 0, 0x49, 0xd2, 0x40 };
+ int n = sizeof b;
+ for (int i = 0; i <= n - 8; i++)
+ print_double (b + i);
+/*
+ for (int i = 0; i <= n - 4; i++)
+ print_float (b + i);
+*/