The following function value is of type ( ). fun (float x) { float y; y= 3*x-4; return y; }
A. int
B. uncertain
C. void
D. float
查看答案
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;