#include <stdio.h>
typedef struct elem {
void * d;
} Elem;
int main() {
Elem *p = &(struct elem) { .d = NULL }; //malloc(sizeof(Elem));
Elem e;
double pi = 3.14;
e.d = π
p->d = π
printf("%f\n", *((double *)p
->d
)); printf("%f\n", *((double *)e.
d)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIHN0cnVjdCBlbGVtIHsKICAgIHZvaWQgKiBkOwp9IEVsZW07CgppbnQgbWFpbigpIHsKICAgIEVsZW0gKnAgPSAmKHN0cnVjdCBlbGVtKSB7IC5kID0gTlVMTCB9OyAvL21hbGxvYyhzaXplb2YoRWxlbSkpOwogICAgRWxlbSBlOwogICAgCiAgICBkb3VibGUgcGkgPSAzLjE0OwogICAgZS5kID0gJnBpOwogICAgcC0+ZCA9ICZwaTsKCiAgICBwcmludGYoIiVmXG4iLCAqKChkb3VibGUgKilwLT5kKSk7CiAgICBwcmludGYoIiVmXG4iLCAqKChkb3VibGUgKillLmQpKTsKICAgIHJldHVybiAwOwp9