以下程序运行后的输出结果是【 】。 include <stdio, h> main() char c1 ,c2; for(el = 0, c2 =9; e1<c2; c1 + + , c2 -- ) printf(" %c%c", c1, c2 ); printf("\n" ); }
第1题
以下程序运行后输出结果是【 】。 include <stdio, h> void swap(int x.int y) { int t; t = x;x = y;y = t: printf( "% d % d ",x,y); } main ( ) { iht a=3,b=4: swap(a,b); prinff( "% d % d" ,a,b); }
请帮忙给出正确答案和分析,谢谢!
第2题
以下程序运行后的输出结果是【 】。 include <stdio, h> include <string, h> main( ) { char ch[] ="abc".,x[3] [4]: int i: for(i=0;i<3:i ++) strcpy(x[i] ,ch): for(i =0;i<3:i++) printf( "% s" ,&x[i] [i]); printf(" \n" ) }
请帮忙给出正确答案和分析,谢谢!
第3题
以下程序运行后的输出结果是【 】。 include <stdio, h> include <stating, h> void fun(char * s,int p,int k) { int i; for(i=p;i<k-1;i++) s[i] =s[i+2]; } main( ) { char s [] = "abedefg"; fun(s,3 ,strlen(s) ); puts(s); }
请帮忙给出正确答案和分析,谢谢!
第4题
有下面的程序: include <stdio, h> main ( ) { enum team {my,your=4,his,her=his+10}; prinff(" % d %d %d %d \n" ,my,your,his,her); 此程序的输出结果是【 】。 A) 0 1 2 3 B) 0 4 0 1 0 C) 0 4 5 1 5 D) 1 4 5 1 5
请帮忙给出正确答案和分析,谢谢!
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!