Anda di halaman 1dari 9

027-87781572 www.shydn.

com QQ:723833654

2010 9 C
1-10 21-40 2 11-20 1 70
ABCD

1
A
B
C
D
2
A
B
C
D
3
A

4
A

5
A

6
A

7
A

8
A

9
A

10 R
S T

R S T
A

11
A
B goto
C C
D


027-87781572 www.shydn.com QQ:723833654

12
A
B
C
D
13
A C
BC
C C
DC
14int

a long

Aa%intx-y

b double

Ba=x!=y;

xy

Ca*y%b

Dy=x+y=x

15
A1200

B1.5E2.0

C \

D"\007"

16 a+=a-=a=9
A9

B-9

C18

D0

17 if Wprintf%d\n,k W
Aab+c

Bch=getchar

Ca==b+c

Da++

18
include<stdio.h>
main
int

a=1b=0

ifa b++
else

ifa==0ifab+=2

else

b+=3

printf%dnb

A0

B1

C2

D3

19 int a, bdouble x
Aswitchx%2

Bswitchintx/2.0

{case 0: a++; break;

{case 0: a++; break;

case 1: b++; break;

case 1: b++; break;

default : a++; b++;

default : a++; b++;

}
Cswitchintx%2
{case 0: a++; break;

}
Dswitchintx%2
{case 0.0: a++; break;

case 1: b++; break;

case 1.0: b++; break;

default : a++; b++;

default : a++; b++;

}
20
include <stdio.h>


027-87781572 www.shydn.com QQ:723833654

main
int a=1b=2
whilea<6b+=aa+=2b=10
printfddnab

A5,11

B7,1

C7,11

D6,1

21
includestdioh>
main
int y=10
whiley--
printfY=dnY

Ay=0

By= -1

Cy=1

Dwhile

22
includestdio .h>
main
char srstuv"
printfcn*s2

Atuv

B t ASCII

Ct

23
includestdio.h>
includestring.h>
main

char xSTRING
x0=0x10x20
printfd

d\nsizeofxstrlenx

A6

B7

C6

D7

24
includestdioh>
Int

fint

main
int

n=1m;

m=fffnprintf%dnm;

int

fint

return

x*2


027-87781572 www.shydn.com QQ:723833654

A1

B2

C4

D8

25
Aint *p;

scanf"%d",p;

Cint k, *p=&k;

Bint *p;

scanf"%d",p;

scanf%d,p;

Dint k, *p:;

*p= &k;

scanf%d,p;

26int *p[4];
Aint

p[4];

Bint

**p;

Cint

*p4;

Dint *p4;

27
Aint

N=10

int

Bdefine N 10

x[N];

Cint

int x[N];

x[0..10;

Dint x

28 5
Aint

a[5]=0;

Bint

b[]={0,0,0,0,0};

Cint

c[2+3];

Dint

i=5,d[i];

29
includestdioh>
void

fint *p

main
int

a512345*r=a

frprintfd\n*r

void fint *p
p=p+3printfd*p

A1,4

B4,4

C3,1

D4,1

30 fun
# includestdioh>
void funint *aint n
int ijkt
for i=0;i<n-1i+=2
k=i;
forj=ij<nj+=2ifaj>ak]k=j
t=a[i]a[i]=ak]ak]t

main
int aa10=1234567i
funaa7
fori=0i<7; i++printfd,,aai;
printfn

A7,2,5,4,3,6,1

B1,6,3,4,5,2,7

C7,6,5,4,3,2,1

D1,7,3,5,6;2,1


027-87781572 www.shydn.com QQ:723833654

31 s1 s2, ST"
Aifstrcmps2,s1==0ST;

Bifsl==s2ST;

Cifstrcpys l ,s2==1ST;

Difsl-s2==0ST;

32 s t
Awhile*t=*st++;s++
Bfori=0;t[i]=s[i;i++
Cdo*t++=*s++;while*s;
Dfori=0,j=0;t[i++]=s[j++];;
33 strcat
includestdio.h>
includestring.h>
main
char a20=ABCDOEFG0bIJK
strcatabprintfs\na

AABCDE\OFG\OIJK

BABCDIJK

CIJK

DEFGIJK

34 islower ch ch
includestdioh>
includectypeh
void

funchar *p

int

i=0

while p[i
ifp[i]== islowerpi-1p[i-1]=p[i-1]-a+A;
i

main
char s1100ab cd EFG
funs1 printfs\ns1

Aab

cd

EFG

BAb

Cd

EFg

35
includestdioh>
void

funint x

ifx21funx2
printfdx

main
fun7printf\n

A1 3 7

B7 3 1

C7 3

D3 7

CaB

cD

EFG

Dab

cd

EFg


027-87781572 www.shydn.com QQ:723833654

36
includestdioh
int fun
static int x=1
x+=1return x

main
int is=1
fori=1i<=5i++s+=fun
printfdns

A11

B21

C6

D120

37
inctudestdioh
includestdlibh
Main
int *a*b*c
a=b=c=int*mallocsizeofint
*a=1*b=2*c=3
a=b
printfdddn*a*b*c

A3,3,3

B2,2,3

C1,2,3

D1,1,3

38
includestdioh>
main
int stA=10double B=6
ssizeofAt=sizeofB
printfddnst

VC6
A2,4

B4,4

C4,8

D10,6

39
Typedef struct S
int g; char h;T;

A S

B T

CS struct

DT struct S

40
includestdioh>
main


027-87781572 www.shydn.com QQ:723833654

short c=124
c=c_______
printfdnC

248
A>>2

B|248

C0248

D<<1

2 30
115
1 5,4,3,2,1 A,B,C,D
1
2 n 2
3 10 1 7 2 3
44
55
66
includestdioh>
main
int a=200b=010
printf%d%d\nab

7
includestdioh>
main
int

x,y;

scanf2d%1dxyprintfdnx+y

1234567 7
8 C 0 8
9
includestdioh>
main
int i,n[]={0,0,0,0,0};
for i=1i<=4;i++
{ n[i]=n[i-1]*3+1; printf%d ",n[i]
}
9
10 fun N N
int funint xN
int ik=0
fori=0i<Ni++
ifxi<x[k]k=10;
return xk
}


027-87781572 www.shydn.com QQ:723833654

11
#includestdioh>
intfint *pint *q
main
int m=1n=2*r=&m
r=frnprintfdn*r

int *fint *pintq


return*p>*q?pq
11
12 fun N M M,. N

int funint aN[M


int ijrow=0col=0
fori=0i<Ni++
forj=0j<M;j++
ifaijarowcolrow=icol=j
return12
}
13
includestdioh>
main
int

n[2]ij

fori=0i<2i++n[i]=0
fori=0i<2i++
forj=0j<2j++nj=n[i]1
printfd\nn[1]

13
14

includestdioh>
main
int a10*p*s
forp=ap-a<10p++scanfdp
forp=as=ap-a<10p++if*p>*ss=p
printf"max=%d\n14

15 f.txt, a
includestdioh>
main
15*fp
char a512345i


027-87781572 www.shydn.com QQ:723833654

fp=fopenf txtw
fori=0i<5i++fputca[i]fp
fclosefp

1-10 BCDAA DDCCA 11-20 CBBAD DAACB


21-30 BCBDC CBDDA 31-40 ACBCA BBCBD

1:

1DCAB2345 2:

n-1 3:

25

4:

5:

6:

2008

15

9:

1 4 13 40

10: i

14: *s

15: FILE

11: 2

7:

8:

12: a[row][col] 13: 3

www.51shy.com 027-87781572 QQ:723833654