现有如下程序段,此程序段编译有错误,则程序段的错误出在includemain(){int a=30,b=40, 现有如下程序段,此程序段编译有错误,则程序段的错误出在 #include<stdio.h> main() { int a=30,b=40,c=50,d; d=a>30? b:c; swish(d) { case a: Printf("%d,",a); case b: printf("%d,",b); case c: printf("%d,",c); default printf("#");}}A.default:printf("#");这个语句B.d=a>30? b:c;这个语句C.case a:printf("%d,",a);case b:printf("%d,",b);case c:printf("%d,",c);这三个语句D.switch(d)这个语句
现有如下程序段,此程序段编译有错误,则程序段的错误出在includemain(){int a=30,b=40,
现有如下程序段,此程序段编译有错误,则程序段的错误出在 #include<stdio.h> main() { int a=30,b=40,c=50,d; d=a>30? b:c; swish(d) { case a: Printf("%d,",a); case b: printf("%d,",b); case c: printf("%d,",c); default printf("#");}}
A.default:printf("#");这个语句
B.d=a>30? b:c;这个语句
C.case a:printf("%d,",a);case b:printf("%d,",b);case c:printf("%d,",c);这三个语句
D.switch(d)这个语句
相关考题:
现有如下程序段,此程序段编译有错误,则程序段的错误出在#includemain(){ int a=30,b=40,c=50,d;d=a 30?b:c;switch(d){case a:printf("%d,",a);case b:printf("%d,",b);case c:printf("%d,",c);default:printf("#");}}A.default:printf("#");这个语句B.d=a30?b:c;这个语句C.case a:printf("%d,",a); case b:printf("%d,",b); case c:printf("%d,",c);这三个语句D.switch(d)这个语句
现有如下程序段,则程序段的输出结果为 【16】 。#include "stdio.h"int fun(){static int k;return k;}main(){int m;m=fun();printf("%d\n",m);}
现有如下程序段#include "stdio.h"int fun(int k,int *m){if(k%3)*m=k*k;else *m=k/3;}main(){ int (*p)(int,int *),m;p=fun;(*p)(78, m);printf( "%d\n",m);}则程序段的输出结果为A.24B.25C.26D.27
现有如下程序段#include "stdio.h"int aa(int x,int y);main(){int a=24,b=16,c;c=aa(a,b);printf("%d\n",c);}int aa(int x,int y){int w;while(y){w=x%y;x=y;y=w;}return x;}则程序段的输出结果是A.8B.7C.6D.5
现有如下程序段 #include"stdio.h" main() { int k[30]={12,324,45,6,768,98,21,34,453,456}; int count=0,i=0; while(k[i]) { if(k[i]%2==0‖k[i]%5==0)count++; i++; } printf("%d,%d\n",count,i);} 则程序段的输出结果为A.7,8B.8,8C.7,10D.8,10
现有如下程序段 #include"stdio.h" main() { int k[30]={12,324,45,6,768,98,21,34,453,456}; int count=0,i=0; while(k[i]) { if(k[i]%2==0||k[i]%5==0)count++; i++; } printf("%d,%d\n",count,i);} 则程序段的输出结果为A.7,8B.8,8C.7,10D.8,10
下面程序段的输出为( )。 include "stdio.h" main { printf("%d\n",122); }A.0SXB 下面程序段的输出为( )。 #include "stdio.h" main { printf("%d\n",122); }A.0B.47C.48D.24
现有如下程序段 #include "stdio.h" main() { int k[30]={12,324,45,6,768,98,21,34,453,456}; int count=0,i=0; while(L[i]) { if(k[i]%2==0||k[i]%5==0)count++; i++; } printf("%d,%d\n",count,i);} 则程序段的输出结果为A.7,8B.8,8C.7,10D.8,10
现有如下程序段#include "stdio.h"int *fun(int *a,int *b){int c;c=*a%*b;return c;}main(){int a=5,b=19,*c;c=fun(a,b);printf("%d\n",++*c);}则程序段执行后的结果为A.8B.7C.6D.5