#include<stdio.h>
#include<stdlib.h>
int main() {
struct calendario {
int dia;
int mes;
int ano;
};
struct calendario
*ptr
= malloc(sizeof(struct calendario
)); ptr->dia = 5;
ptr->mes = 10;
ptr->ano = 1990;
printf("%i/%i/%i", ptr
->dia
, ptr
->mes
, ptr
->ano
); return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8c3RkbGliLmg+CgppbnQgbWFpbigpIHsgICAKCXN0cnVjdCBjYWxlbmRhcmlvIHsKCQlpbnQgZGlhOwoJCWludCBtZXM7CgkJaW50IGFubzsKCX07CglzdHJ1Y3QgY2FsZW5kYXJpbyAqcHRyID0gbWFsbG9jKHNpemVvZihzdHJ1Y3QgY2FsZW5kYXJpbykpOwoJcHRyLT5kaWEgPSA1OwoJcHRyLT5tZXMgPSAxMDsKCXB0ci0+YW5vID0gMTk5MDsKCXByaW50ZigiJWkvJWkvJWkiLCBwdHItPmRpYSwgcHRyLT5tZXMsIHB0ci0+YW5vKTsKCXJldHVybiAwOwp9