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.
All global variables are stored in static storage.
In C, the default storage category for a foraml parameter is ( ).
A. auto
B. register
C. static
D. extern