.
scanf(
"
%s
"
,s);
D
.
strcpy(s,
"
abcd
"
);
E
.
strcpy(
"
abcd
"
,s);
24
.关于结构体,下面各项中
不正确的有( )
A
.
struct person{long bh; char *name; int age;}
psl={9100,
"
wang
"
,20},* pst;
pst=psl; printf(
"
%d
"
,*pst
→
age);
B
.
struct my_data
{int num; struct my_data *next;};
C
.
struct test
{char *course; char *class}
D
.
struct worker
{char name[9]; float gz;}Li={
"
Li Ping
"
,532.67};
E
.
struct int_num
{int i _num;struct int_num *next; }ione, *pi;
pi=&ione;
25
.设有说明:
int x=1,y=2,z=3
;则下面表达式的值为
0
的有( )
A
.
x&y&z
B
.
x
¦
y
¦
z
C
.
x^x+y^y
D
.
z>>y
E
.
x&0xff00
三、简答题(本大题共
4
小题,每小题
4
分,共
16
分)
26
.
C
语言中的运算符“
=
”与运算符“
= =
”的意义相同吗?为什么?
27
.变量的存储类别分为哪几种?它们分别存储在什么区域?
28
.试定义一个三行的二维字符数组
s
,并用"
I am a boy
"
,
"
you are a girl
"
,
"
he is a teacher
"对其进行初始化。
29
.设有说明:
int a[2][3]
;
请用四种方式来表示数组元素
a[1][2]
。
四、阅读分析题(本大题共
6
小题,每小题
5
分,共
30
分)