If the system allocates 2 bytes for int type, 1 byte for char type and 8 bytes for double type, then if there are the following statements, the number of bytes in memory occupied by variable ss is ( ). struct s { int m; char c; double d; }ss;
查看答案
A character constant is a character enclosed in double quotes.
The following statement about structured program, ( ) is wrong.
A. Program is the concrete realization of algorithm with some programming language
B. The program can not satisfy the limitation of the algorithm
C. The program has no structure
D. An algorithm can be implemented in many programming languages
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.