单项选择题
有以下程序:
#include <stdio.h>
main()
int i=5;
do
if (i%3==1)
if (i%5==2)
printf("*%d",i); break;
i++;
while(i!=0);
printf("\n");
程序的运行结果是( )。
A.*7
B.*3*5
C.*5
D.*2*6
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: #include<string> void main() char a[]='a','b','c','d','e','f','g','h',' 0';int i,j; i=sizeof(a); j=strlen(a); printf( %d,%d n ,i,j); 程序运行后输出的结果是( )。
A.9,9
B.8,9
C.1,8
D.9,8
点击查看答案
单项选择题
以下结构体类型说明和变量定义中正确的是( )。
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;
点击查看答案
相关试题
有以下程序: #include <string.h> ...
有以下程序: #include <stdio.h> s...
在C语言中,只有在使用时才占用内存单元的...
有以下程序: #include <stdio.h> s...
有如下函数调用语句: func(rec1,rec2...