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
To "pass" a string from one function to another, only character array names can be used as actual and formal parameters