填空题
阅读程序: main( ) { char strl[]="how do you
do",str2[10]; char * p1=strl,*
p2=str2; scanf("%s”,p2); printf("%s”,p2); printf("%s/n",p1); } 运行上面的程序,输入字符串HOW
DO YOU DO 则程序的输出结果是{{U}} {{U}} {{/U}}{{/U}}。
填空题
下列程序的输出结果是______。
#include<stdio.h>
main()
{ int x=1,y=1,a=1,b=1;
switch(x)
{ case 1:
switch(y)
{ Case0:a++;break;
case 1:b++;break;
}
case2:
a++;b++;break;
}
printf("a=%d,b=%d/n",a,b);
}