下列程序运行的结果是__________ 。#include int main( ){int i;for (i=1; i<=5; i++){if (i%2)printf("*");elseprintf("#");}printf("$");return 0;}
下列程序运行结果为__________。#includeintmain(){inti,b,k=0;for(i=1;i<=6;i++){b=i%2;while(--b>=0){k++;}}printf("%d,%d",k,b);return0;}
下列程序运行结果为__________。#includeintmain(){inti,b,k=0;for(i=1;i<=5; i++){b=i%2;while(b-->=0) k++;}printf("k=%d,b=%d",k,b);return0;}
下列程序段是错误的,因为for中没有循环条件。for( ;;)printf("****");
A. 对
B. 错