单项选择题

下列循环体的执行次数是( )。
#include<stdio.h>
main()
int i,j;
for(i=0,j=1;i<j+1;i+=1,j--)
printf("%d\n",j);

A) 3
B) 2
C) 1
D) 0
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <stdio.h> main() int x=102,y=012; printf( %2d,%2d n ,x,y); 执行后的输出结果是( )。
A) 10,01
B) 02,12
C) 102,10
D) 02,10
单项选择题
有以下程序: int fun(int n) if(n==1)return 1; else return(n+fun(n-1)); main() int x; scanf( %if ,&x);x=fun(x);printf( %d n ,x); 执行程序时,给变量X输入10,程序的输出结果是______。
A) 55 B) 54 C) 65 D) 45
相关试题
  • 有以下程序 #include <stdio.h> voi...
  • A.A,B B.A,68C.65,66 D.6...
  • 若有以下的说明和语句,则在执行for语句后...
  • 以下对结构体类型变量td的定义中,错误的是...
  • A.0 B.9 C.6 D.8