执行下面程序的输出结果是()。main(){inta=5,b=0,c=0;if(a=a+b)printf("****
");elseprintf("####
");}
");elseprintf("####
");}
举一反三
- 阅读下面的程序,该程序().main(){inta=5,b=0,c=0;if(a=b+c)printf("***\n");elseprintf("$$$\n");}
- 试编程判断输入的正整数是否既是5又是7的整倍数。若是,则输出yes;否则输出no,下面程序段哪个能实现() A: #includevoidmain(){inta;scanf("%d",a);if(a%5==0&&a%7==0)printf("yes");elseprintf("no");} B: #includevoidmain(){inta;scanf("%d",&a);if(a%5==0&&a%7==0)printf("yes");elseprintf("no");} C: #includevoidmain(){inta;scanf("%d",&a);if(a%5==0||a%7==0)printf("yes");elseprintf("no");} D: #includevoidmain(){inta;scanf("%d",&a);if(a%5=0&&a%7=0)printf("yes");elseprintf("no");}
- 下列程序执行后的输出结果是().voidfunc(int*a,intb[]){b[0]=*a+6;}main(){inta,b[5];a=0;b[0]=3;func(&a,b);printf("%d\n",b[0]);}
- 以下程序输出结果是()main(){inta=5,b=4;printf("%d\n",a>b?a+b:a-b);}
- 以下程序执行后输出结果是___________。main(){inta=10;if(a>10)printf("%d\n",a>10);elseprintf("%d\n",a<=10);}