题目内容

Known student records are described as: struct student { int no; char name[20]; char sex; struct { int year; int month; int day; }birth; } struct student s; Suppose that "birthday" in variable s should be "November 11, 1984", and the following correct way to assign "birthday" is ( ).

A. year=1984 month=11; day=11;
B. birth.year=1984; birth.month=11; birth.day=11;
C. s.year=1984; s. month=11; s.day=11;
D. s.birth.year=1984; s.birth.month=11; s.birth.day=11;

查看答案
更多问题

%d of the scanf function is used to enter a real number.

The following statement about human and computer solving practical problems, ( ) is wrong.

A. Human computing is slow and computers are fast
B. The amount of information stored in the human brain is small and the computer is large
C. Human accuracy is average, but computers are accurate
D. A computer can do what human beings can do

There are definitions: struct complex { int real,unreal; } data1={1,8},data2; In the following assignment statements, the incorrect is ( )

A. data2=data1;
B. data2={2,6};
C. data2.real=data1.real;
D. data2.real=data1.unreal;

Nested if statements can realize multi branch selection.

答案查题题库