[单选题]

有如下程序段:
int k;
for(k=2;k==0;)
printf(“%d”,k--);
则for循环体执行的次数是(  )。

A.0次

B.1次

C.2次

D.无限次

参考答案与解析:

相关试题

有以下程序段:<br />char ch; int k;<br />ch='a'; k =12;<br />printf("%c,%d

[单选题]有以下程序段:char ch; int k;ch='a'; k =12;printf("%c,%d,",ch,ch,k); printf("k=%d

  • 查看答案
  • 有以下程序:<br />#include <br />int b=2;<br />int fun(int *k)<br />{ b=*k+b;<b

    [单选题]有以下程序:#include int b=2;int fun(int *k){ b=*k+b;?return(b);}main(){ int a[10

  • 查看答案
  • 有以下程序:<br />#include<stdio.h><br />int b=2;<br />int fun(int*k)<br />{

    [单选题]有以下程序:#includeint b=2;int fun(int*k){ b=*k+b;return(b);}main(){ in

  • 查看答案
  • 阅读以下FORTRAN程序<br />K1=M(5)<br />k2=M(k1)<br />K3=M(K1)+M(K2)<br />K4=M(K1+K2

    [单选题]阅读以下FORTRAN程序K1=M(5)k2=M(k1)K3=M(K1)+M(K2)K4=M(K1+K2+K3)WRITE(*,100)K4100 

  • 查看答案
  • 阅读以下FORTRAN程序<br />K1=M(5)<br />k2=M(k1)<br />K3=M(K1)+M(K2)<br />K4=M(K1+K2

    [单选题]阅读以下FORTRAN程序K1=M(5)k2=M(k1)K3=M(K1)+M(K2)K4=M(K1+K2+K3)WRITE(*,100)K4100 F

  • 查看答案
  • 阅读以下FORTRAN程序<br />K1=M(5)<br />k2=M(k1)<br />K3=M(K1)+M(K2)<br />K4=M(K1+K2

    [单选题]阅读以下FORTRAN程序K1=M(5)k2=M(k1)K3=M(K1)+M(K2)K4=M(K1+K2+K3)WRITE(*,100)K4100 

  • 查看答案
  • 阅读以下FORTRAN程序<br />K1=M(5)<br />k2=M(k1)<br />K3=M(K1)+M(K2)<br />K4=M(K1+K2

    [单选题]阅读以下FORTRAN程序K1=M(5)k2=M(k1)K3=M(K1)+M(K2)K4=M(K1+K2+K3)WRITE(*,100)K4100 

  • 查看答案
  • 阅读以下FORTRAN程序<br />K1=M(5)<br />k2=M(k1)<br />K3=M(K1)+M(K2)<br />K4=M(K1+K2

    [单选题]阅读以下FORTRAN程序K1=M(5)k2=M(k1)K3=M(K1)+M(K2)K4=M(K1+K2+K3)WRITE(*,100)K4100 

  • 查看答案
  • 阅读以下FORTRAN程序<br />K1=M(5)<br />k2=M(k1)<br />K3=M(K1)+M(K2)<br />K4=M(K1+K2

    [单选题]阅读以下FORTRAN程序K1=M(5)k2=M(k1)K3=M(K1)+M(K2)K4=M(K1+K2+K3)WRITE(*,100)K4100 

  • 查看答案
  • 阅读以下FORTRAN程序<br />K1=M(5)<br />k2=M(k1)<br />K3=M(K1)+M(K2)<br />K4=M(K1+K2

    [单选题]阅读以下FORTRAN程序K1=M(5)k2=M(k1)K3=M(K1)+M(K2)K4=M(K1+K2+K3)WRITE(*,100)K4100 F

  • 查看答案
  • 有如下程序段:<br />int k;<br />for(k=2;k==0;)<br />printf(“%d”,k--);<br />则for循环体执