单项选择题
有以下程序
main()
int k=5;
while(--k)printf("%d",k-=3);
printf("\n");执行后的输出结果是________。
A.1
B.2
C.4
D.死循环
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序#inlucdemain() int n,*p=NULL;*p=&n;printf( Input n: ); scanf( %d ,&p); printf( output n: ); printf( %d n ,p);该程序试图通过指针p为变量n读入数据并输出,但程序有多处错误,以下语句正确的是________。
A.int n,*p=NULL;
B.*p=&n;
C.scanf("%d",&p)
D.printf("%d\n",p);
点击查看答案
单项选择题
以下结构体类型说明和变量定义中正确的是________。
A.typedef struct int n; char c;REC; REC t1,t2;
B.struct REC; int n; char c;; REC t1,t2;
C.typedef struct REC; int n=0; char c='A';t1,t2;
D.struct int n;char c;REC; REC t1,t2;
点击查看答案
相关试题
有以下程序struct STU char name[10...
有以下程序#include main() int x=...
以下合法的字符型常量是________。
有以下程序#includemain() char p[2...
以下语句或语句组中,能正确进行字符串赋值...