Study of structures - 4.

#include <stdio.h>

struct dt
{
int d, m, y;
};

typedef struct dt dt;

int main(void)
{
dt var, *p;

p = &var;

p -> d = 1;
p -> m = 1;
p -> y = 1111;

printf("\nDate : %d / %d / %d", var.d, var.m, var.y);

return 0;
}

No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin