printf(“%d、n”,cnum[0]。y/cnum[0]。x*cnum[1]。x);》
(43)下面程序输出是
A》23 B}26 C}33 D}36
int aa[3][3]={{2},{4},{6}};
main()
{int i,*p=&aa[0][0];
for(i=0;i《2;i》
{if(i==)}
aa[i][i1]=*p1;
else
p;
printf(“%d”,*P);)
}
(44)下面程序的输出是
A}23 B}24 C}25 D}26
void prty(int *x)
{printf(“%d、n”,*);}
main()
{int a=25;
prtv(&a);}
(45)下面程序的输出是
A}3 B}4 C}6 D}9
fun3(int x)
{static int a=3;
a=x;
return(a);}
main()
{int k=2,m=1,n;
n=fun3(k);
n=fun3(m);
printf(“%d、n”,n);}
(46)已知字符0的ASCII码为十六进制的30,下面程序的输出是
A}6 B}9 C}0 D}3
main()
{union{unsigned char c;
unsigned int i[4];
}z;
z.i[0]=0x39;
z.i[1]=0x36;
printf(“%、n”,z.c);}
(47)下面程序的输出是
A}60 B}68 C}99 D}108
main()
{int a[3][4]={1,3,5,7,9,11,13,15,17,19,21,23};
int(*P)[4]=a,i,j,k=0;
for(i=0;i《3;i》
for(j=0;j《2;j》
k=k*(*(pi)j);
printf(“%d、n”,k;}
(48)下面程序的输出是
A)1 B)2 C)7 D)10
int m=13;
int fun2(int x,int y)
{int m=3;
return(x*y——m);
}
main()
{int a=7,b=5;
printf(“%d、n”,fun2(a,b)/m);}
(49)下面程序的输出是
A)32 B)16 C)8 D)24
typedef union {long x[2];
int y[4];
char z[8];
}MYTYPE;
MYTYPE them;
main()
{printf(“%d、n”,sizeof(them));}
(50)下面程序的输出是
A)ABCD B)A C)D D)ABCD
BCD B C ABC
CD C B AB
D D A A
char s[]=“ABCD”;
main()
{char *p;
for(p=s;p
#include
void fun4(char str[]
{int i,j;
for(i=0,j=0;str[i];i)
if(isalpha(str[i]))str[j]=str[i];
本新闻共
6页,当前在第
4页
1 2 3 4 5 6