#include <stdio.h>
#include <stdint.h>
union {
struct {
uint8_t first:8;
uint8_t second:8;
uint8_t third:8;
uint8_t fourth:8;
};
uint32_t ip;
} typedef IPAddress;
int main() {
IPAddress ip = {{127,55,7,3}};
printf("%d.%d.%d.%d\n", ip.first, ip.second, ip.third, ip.fourth);
return 0;
}
/*
run:
127.55.7.3
*/