aboutsummaryrefslogtreecommitdiff
path: root/2025-linuxdays/anon.c
blob: 392534b703aeee471586de8a9ff1bd17c411bf26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <inttypes.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
  struct point {
    union {
      struct {
        uint32_t x, y;
      };
      uint64_t u64;
    };
  };

  struct point a = {.x = 0x56, .y = 0x38};
  printf("%.16" PRIx64 "\n", a.u64);
  return 0;
}