下面程序段的运行结果是()。inta=5,b=6;printf(%d,a|b); A.5B.6C.7D.8

下面程序段的运行结果是()。inta=5,b=6;printf("%d",a|b);

A.5

B.6

C.7

D.8


相关考题:

有如下程序段void func(int *a,int b[ ]){ b[0]=*a+6; }main(){ int a,b[5]={0}; a=0;b[0]=3; func(a,b); printf("%d\n",b[0]); }程序运行后输出的结果是A.6 B.7 C.8 D.9

下面程序的运行结果是( )。include main(){int a=25; fun(A); }fun(int *x){ print 下面程序的运行结果是( )。include<stdio.h>main(){int a=25;fun(A);}fun(int *x){ printf("%d\n",++*x);}

有以下程序:includedefine X 5+6main(){int a=2,c;C=X*2:printf("%d",C);}程序运行后 有以下程序: #include<stdio.h> #define X 5+6 main() {int a=2,c; C=X*2: printf("%d",C); } 程序运行后的输出结果是( )。A.17B.22C.16D.11

下面程序运行后的输出结果是( )。 include main() {int a[]={1,2,3,4,5,6},*k[3],i=1; w 下面程序运行后的输出结果是( )。include<stdio.h>main(){int a[]={1,2,3,4,5,6},*k[3],i=1;while(i<4){ k[i-1]=a[2*i-1];printf("%d",*k[i-1]);i++;}}

下面程序: void func (int *a,int b[]) { b[0] =*a+6;) main() { int a,b[5]; a=0; b[0]=3; func(a,b); printf("%d\n",b[0]); } 则程序运行后的输出结果是( )。A.6B.7C.8D.9

下面程序的运行结果是() main() { int a[][]={{1,2,3},{4,5,6}}; System.out.printf("%d", a[1][1]); }A.5B.3C.4D.6

1. 下面程序的运行结果是() main() { int a[ ][ ] = { { 1, 2, 3 } , { 4 , 5 , 6 } } ; System.out.printf("%d" , a[1][1] ) ; }A.3B.4C.5D.6

下面程序的运行结果是() main() { int a[][]={{1,2,3},{4,5,6}}; System.out.printf("%d", a[1][1]); }A.3B.4C.5D.6

以下程序段运行后的输出结果是() int a[5]={2,4,6,8,10},*p; p=a; p++; printf(“%d”,*p);