99程序员级考试答案
上午答案
|
试题 |
A |
B |
C |
D |
E |
|
1 |
1 |
3 |
3 |
2 |
4 |
|
2 |
1 |
3 |
1 |
2 |
3 |
|
3 |
3 |
1 |
2 |
4 |
4 |
|
4 |
3 |
2 |
4 |
1 |
2 |
|
5 |
4 |
1 |
3 |
4 |
2 |
|
6 |
3 |
2 |
3 |
4 |
1 |
|
7 |
2 |
3 |
1 |
2 |
4 |
|
8 |
2 |
3 |
1 |
4 |
3 |
|
9 |
4 |
2 |
1 |
3 |
3 |
|
10 |
4 |
1 |
2 |
4 |
3 |
|
11 |
2 |
3 |
2 |
3 |
1 |
|
12 |
3 |
1 |
3 |
3 |
1 |
|
13 |
3 |
1 |
2 |
4 |
1 |
|
14 |
2 |
4 |
2 |
1 |
3 |
|
15 |
2 |
3 |
4 |
1 |
2 |
下午答案
试题一
(1)*to++=*from++ 或 (*to++=*from++) !=
'\0'
(2)i<n 或 i!=n
(3)j<m
或 j!=m
(4)a[n-1]+sum(a,n-1) 或 a[0]+sum(a+1,n-1)
(5)return
0
试题二
(1)*ip - '0' + 1
或 *ip-47
(2)*++ip
(3)*op++=*ip
(4)*op='\0'
(5)n>1
(6)*ip=='_'
试题三
(1)*ptr=*t
(2)ptr->word
(3)ptr->count++
或任何使ptr->count 增1的c代码
(4)p=ptr
(5)*t=ptr
(6)t=NULL
或!(
(7)&root,word
试题四
(1)checkMatrix[pos][i]
(2)(3) return0
return1 或 break return j<0 ? 1: 0
及类似效果的代码
(4)++pos
(5)a[pos]+1
(6)b[a[pos--]]=1
(7)pos==8
或 pos>7 及两者的等效形式