单项选择题

设有下面的定义:struct student{ int id; char *name; int math;}stud1;关于结构体变量赋值正确的是()。
A、stud1.id=1001; stud1.name="Jasmine";
B、id=1001; *stud1.name="Jasmine";
C、stud1.id=1001; stud1.*name="Jasmine";
D、stud1.id=1001; *stud1.name="Jasmine";

微信扫码免费搜题