有以下程序: #include <stdio. h> main () { char a :'a',b; printf("% c," , + + a); printf("%c \n" ,b =a++); }程序运行后的输出结果是()。
A.b,b
B.b,c
C.a,b
D.a,c
有以下程序: #include<stdio.h> void fun(char *a,char*B){while(*a=='*')a++; while(*b=*A){b++;a++;} } main() {char*s="****a*b****",t[80]; fun(s,t);puts(t); } 程序的运行结果是()。
A.*****a*b
B.a*b
C.a*b****
D.ab
(21 )有以下程序
# include (stdio.h >
main ()
{ int a = l ; b = 2 ;
for (; a < 8 ; a++ ) { b+=a ; a+=2 ; }
printf (" %d , %d \ n ", a , b ) ;
}
程序运行后的输出结果是
A ) 9 , 18
B ) 8 , 11
C ) 7 , 11
D ) 10 , 14
A.2,1
B.2,0
C.3,1
D.6,1
A.6 1
B.7 0
C.6 3
D.7 1
A.-11 is a positive odd number.
B.-11 is a negative odd number.
C.-11 is a positive even number.
D.11 is a negative even number.
有以下程序: #include < stdio. h > main () int a=3,b=4,c=5,d=2; if(a>b) if(b>c)printf("%d",d++ +1); else printf("% d", + + d + 1 ); printf("% d \n" ,d); 程序运行后的输出结果是()。
A.2
B.3
C.43
D.44
有以下程序: #include<stdio.h> void f(int*p); main {int a[5]={1,2,3,4,5),*r=a; f(r);printf("%d\n",*r); } void f(int*p) {p=p+3;printf("%d,",*p);} 程序运行后的输出结果是()。
A.1,4
B.4,4
C.3,1
D.4,1
有以下程序: include<stclio.h> main() { char c; while((c=getchar())!=?)putchar(--c); } 程序运行时,如果从键盘输入:Y?N?<回车>,则输出结果为【 】。
有以下程序
#include<stdio.h>
int f(int m)
{ static int n=0;
n+=m:
return n;
}
main()
{ int n=0;
printf("%d,",f(n));
printf("%d\n",f(n++));
}
程序运行后的输出结果是
A.1,2
B.1,1
C.2,3
D.3,3