哪一行出错了?
what is the output of this code?
typedef struct{
int age;
char name[20];
}Person;
Person p={25,"John"};
Person *ptr=&p;
printf("%d",ptr->a);
A 25
B John
C Error
D Address of p
正确答案是C
Person *ptr=&p; 看不懂,一个指针?
printf("%d",ptr->a);看不懂,a是一个对象?
这哪一行出错了?