题目内容

Structure variables of the same structure type can be assigned to each other

查看答案
更多问题

A member of a structure variable cannot be a structure variable

If a is a structural variable, you can use scanf(“%ld,%s,%c,%s\n”,&a); to enter the value of a structure variable as a whole.

There is the following definitions and statements: struct workers { int num; char name[20] ; char c; struct { int day; int mont; int year; } s; }; struct workers w, *pw; pw=&w; The statement that can assign 1980 to the year member in w is ( )

A. *pw.year=1980;
B. w.year=1980;
C. pw->year=1980;
D. w.s.year=1980;

From the perspective of variable scope, it can be divided into static variables and dynamic variables.

答案查题题库