分析下面的C程序,指出错误代码(或运行异常代码)所在的行号。
[C程序]

行号

 

代码

 

1

2

3

4

5

6

7

8

9

lO

11

12

#include <stdio.h>

#include <string.h>

int main ( )

char *p, arrChar[100]="testing";

arrChar="test";

p="testing";

*p=’0’;

p=arrChar+1;

printf("%d//t%d//n",sizeof(arrChar),Strlen(arrChar));

printf("%d//t%d//n",sizeof(char *),strlen(p));

return 0;

 



5,或alTChar="test"
7,或*p=’0’;

You can see a white house _______.

A:in you left B:on you left C:in your left D:on your left

When I got there, the train _____________.

A: has left B: left C: had left D: have left

There stands a primary school ___ the museum.

A:on left side of B:on the left side of C:on left sides of D:on the left sides of

--- Why do you look worried? --- Fred left the company two days ago. His work ______ unfinished sincE.

A: left B: was left C: has left D: has been left

—Why do you look so worried? —Fred left the company half an hour ago. His work _______ unfinished sincE.

A:left B:was left C:has left D:has been left

—Why do you look worried? —Fred left the company half an hour ago. His work ________ unfinished sincE.

A: left B: was left C: has left D: has been left

--- Why do you look worried?--- Fred left the company half an hour ago. His work ____ unfinished sincE.

A: left B: was left C: has left D: has been left

He ____ his home for a week.

A:hasn’t left B:has left C:was left D:had left

He has ____of the team.

A: left out B: left over C: left alone D: left off

微信扫码获取答案解析
下载APP查看答案解析