下面程序段的运行结果是_______。char a[7] = "abcdef" ;char b[4] = "ABC" ;strcpy( a , b ) ;printf("%c\n",a[5]);
A. □(□表示一个空格)
B. \0
C. e
D. f
若有定义:char s[100] = "hello" ;,下列函数调用语句中,不正确的是_______。
A. strlen(strcpy(s,"well"));
B. strcat(s,"!");
C. puts(puts("hello"));
D. !strcmp("",s);
有以下程序:#include void main( ){char s[ ] = "012xy\08s34f4w2" ;int i , n = 0 ;for (i = 0 ; s[i] != 0 ; i++)if (s[i] >= '0' && s[i] <= '9') n++;printf("%d\n", n);}
A. 0
B. 3
C. 7
D. 8
有以下程序:#include void main( ){int i, x[3][2] = {0};for (i = 0; i < 3; i++)scanf("%d", x[i]) ;printf("%3d%3d%3d\n", x[0][0], x[0][1], x[1][0]);}若程序运行时输入:2 4 6<回车>,则输出结果为()。
A. 2 0 4
B.2 0 0
C.2 4 0
D.2 4 6