相关试题
填空题 有以下程序: main( ) { unsigned char a=2,b=4,c=5,d; d=a|b; d&=c; printf("%d\n",d); } 程序运行后的输出结果是 ( )。
填空题 以下程序运行后的输出结果是( )。 #include<stdio.h> int f(int a) {int b=0; static int c=3; b++; c++; return(a+b+c); } void main() { int a=2, i; for(i=0; i<3; i++) printf("%4d", f(a)) ; }
填空题 有以下程序: #include <stdio.h> main() { int x, y, z; x=y=1; z=x++, y++, ++y; printf("%d %d %d\n", x, y, z); } 程序运行后的输出结果是( )。
填空题 以下程序的输出结果是( )。 #include <stdio.h> main() { int a[]={1,3,5,7,9,11,13,15},*p=a+5; switch(1) { case 1: case 2: printf("%d",*p++); break; case 3: printf("%d",*(--p)); } }
填空题 有以下程序,其中strcat函数用来连接两个字符串: #include<stdio.h> #include<string.h> main( ) { char a[20]="ABCD\0EFG\0",b[ ]="IJK"; strcat(a,b); printf("%s\n",a); } 程序运行后的输出结果是( )。
填空题 有以下程序: #include <stdio.h> main() { char c1,c2; c1='A'+'8'-'3'; c2='A'+'8'-'4'; printf( "%c%c%d\n", c1, c2); } 已知字母A的ASCII码为65,程序运行后的输出结果是( )。
填空题 有以下程序,运行后输出的结果是( )。 #include <stdio.h> main() { char *a[ ]={"abcd","ef","gh","ijk"}; int i; for(i=0;i<4;i++) printf("%c",*a[i]); }
填空题 有以下程序,运行后的输出结果是( )。 #include <stdio.h> int fun(int x, int y) { if (x==y) return(x); else return((x+y)/ 2); } main() { int a=3, b=4, c=5; printf("%d", fun(2*a, fun(b,c))); }