79787133

Date: 2025-10-10 08:33:17
Score: 0.5
Natty:
Report link

Using anonymous union , we can get address without such warning:

 #pragma pack(push, 4)
 typedef struct {
    union {
      int a;
      char a_addr[sizeof(int)];
    };
    union {
      double b;
      char b_addr[sizeof(double)];
    };
 } my_t;
 #pragma pack(pop)

use it as this: &my.b_addr.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jgx