单项选择题
有以下程序:
#include <stdio.h>
main( )
int a =0,b =0,c =0,d =0;
if(a = 1) b=1;c=2;
else d=3;
pfintf( "%d,%d,%d ,%d \n" ,a,b,c,d);
A.0,1,2,0
B.0,0,0,3
C.1,1,2,0
D.编译有错
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include <stdio.h>void funl (char * p) char * q; q=p; while( *q! =' 0') (*q) ++;q++;mains( ) char a[ ] = Program , * p; p = &a[3]; fun1 (p); printf( % s n ,
A.;
程序执行后的输出结果是( )。A
点击查看答案&解析
单项选择题
设有以下语句: int a=1,b=2,c; c=a∧(b<<2);执行后,c的值为( )。
A.6
B.7
C.8
D.9
点击查看答案&解析
相关试题
有以下程序:#inelude <stdio.h>main...
执行以下程序后,test.txt文件的内容是(...
现有以下结构体说明和变量定义,如图所示,...
有以下程序: #include <stdio.h> m...
有以下程序:#include <stdio.h>int ...