#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 20
struct data{
int age;
struct data *nextAge;
};
int main()
{
system("color 2f");
struct data zero, satu, dua, tiga;
zero.age = 24;
struct data* ptr;
ptr = &zero;
(*ptr).age = 24;
printf("%d\n", zero.age);
printf("%d\n", (*ptr).age);
printf("%d\n", ptr->age);
return 0;
}
No comments:
Post a Comment