单项选择题

有以下程序
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;
相关试题
  • 以下程序运行后的输出结果是______。...
  • i%2@i%2==1
  • 以下程序中函数fun的功能是:统计person所...
  • j+1.
  • 以下程序的功能是:求出数组x中各相邻两个...