卡通小熊维尼ppt模板

上传人:第*** 文档编号:53681018 上传时间:2018-09-04 格式:PPT 页数:30 大小:509.50KB
返回 下载 相关 举报
卡通小熊维尼ppt模板_第1页
第1页 / 共30页
卡通小熊维尼ppt模板_第2页
第2页 / 共30页
卡通小熊维尼ppt模板_第3页
第3页 / 共30页
卡通小熊维尼ppt模板_第4页
第4页 / 共30页
卡通小熊维尼ppt模板_第5页
第5页 / 共30页
点击查看更多>>
资源描述

《卡通小熊维尼ppt模板》由会员分享,可在线阅读,更多相关《卡通小熊维尼ppt模板(30页珍藏版)》请在金锄头文库上搜索。

1、下面程序的输出是( )。 #include void main() int x=10,y=3;printf(“%dn“,y=x/y); ,9/4/2018,程序: 下面程序的输出是( )。 #include void main() int x=023;printf(“%dn“,-x); ,9/4/2018,程序: 在C语言中,不正确的int类型的常数是( )。 A)32768 B)0 C)037 D)0xAF,9/4/2018,程序: 执行下面程序中的输出语句后 a的值是( )。 #include void main() int a;printf(“%dn“,(a=3*5,a*4,a+5);

2、,9/4/2018,程序: 请选出以下语句的输出结果( )。 printf(“%dn“,strlen(“t“065xffn“);,9/4/2018,程序: 若x 为float型变量,则以下语句( )。 x=213.82631; printf(“%-4.2fn“,x);,9/4/2018,程序: 执行以下语句后,输出结果是( )。int a 1;printf(“d,d“,a,a+);,9/4/2018,程序: 以下程序的输出结果是( )。 #include void main () int i=010,j=10;printf(“%d,%dn“,+i,j-);A)11,10 B)9,10 C)01

3、0,9 D)10,9,9/4/2018,程序: 程序的运行结果是( )。 #include void main() int a=1,b=2,c=3,d=4,m=2,n=2;(m=ab) ,9/4/2018,程序: 执行以下语句后 a 的值为( );b 的值为( )。 int a,b,c; a=b=c=1; +a|+b,9/4/2018,程序: 程序的运行结果是( )。 #include void main() int x=10,y=20,z=30;if(xy)z=x;x=y;y=z;printf(“%d,%d,%d“,x,y,z); ,9/4/2018,程序的运行结果是( )。 #includ

4、e void main() int a=2,b=7,c=5;switch(a0) case 1:switch(b0)case 1:printf(“);break;case 2:printf(“!“);break;case 0:switch(c=5)case 0:printf(“*“);break;case 1:printf(“#“);break;default:printf(“?“);break;default:printf(“ ,9/4/2018,程序: #include void main() int x=3,y=0,z=0;if(x=y+z)printf(“*“);else printf

5、(“#“); ,9/4/2018,程序: 下面程序段的运行结果是( )。 x=y=0; while(x15) y+,x+=+y; printf(“%d,%d“,y,x);,9/4/2018,输入 2473 ,下面程序的运行结果是( )。 #include void main() int c;while(c=getchar()!=n)switch(c-2)case 0:case 1:putchar(c+4);case 2:putchar(c+4);break;case 3:putchar(c+3);default:putchar(c+2);break; printf(“n“); ,9/4/201

6、8,程序的运行结果是( )。 #include void main() int k=0;char c=A;do switch(c+)case A:k+;break;case B:k-;case C:k+=2;break;case D:k=k%2;continue;case E:k=k*10;break;default:k=k/3;k+; while(cG);printf(“k=%dn“,k); ,9/4/2018,程序的运行结果是( )。 #include void main() int fun(int h); int t=1; fun(fun(t); int fun(int h) stati

7、c int a3=1,2,3;int k;for(k=0;k3;k+) ak+=ak-h;for(k=0;k3;k+) printf(“%d,“,ak);printf(“n“);return(ah); ,9/4/2018,程序: #include void main() int i,j,a=0;for( i=0;i2;i+) for(j=0;j4;j+) if(j%2) break;a+; a+; printf(“%dn“,a); ,9/4/2018,程序:#include “stdio.h“ void main()int x=2;while(x-);printf(“%dn“,x);,9/4/

8、2018,#include void num() extern int x,y;int a=15,b=10;x=a-b;y=a+b; int x,y; void main() int a=7,b=5;x=a+b; y=a-b; num();printf(“%d,%dn“,x,y); ,9/4/2018,#include unsigned fun6(unsigned num) unsigned k=1;do k*=num%10;num/=10;while (num);return(k); void main() unsigned n=26;printf(“%dn“,fun6(n); ,9/4/2

9、018,程序: #include long fun5(int n) long s;if (n=1)|(n=2)s=2;else s=n+fun5(n-1);return(s); void main() long x;x=fun5(4);printf(“%ldn“,x); ,9/4/2018,#include int func(int a, int b) int c;c = a + b;return c; void main() int x = 6, y = 7, z = 8, r;r = func(x-,y+,x+y),z-);printf(“%dn“,r);,9/4/2018,#includ

10、e int f(int b , int n) int i, r;r = 1;for(i = 0; i = n; i+) r = r * bi;return r; void main() int x, a = 2, 3, 4, 5, 6, 7, 8, 9;x = f(a, 3);printf(“%dn“, x);,9/4/2018,运行结果是( )。 #include void main() char c6;int i=0;for( ;iN;ci=getchar(),i+);for(i=0;i=0;j-)c=n0j+n1j-2*0;n0j=c%10+0; for(j=0;j=1;j+) puts

11、(nj); ,9/4/2018,程序:#include void fot(int *pl,int *p2) printf(“d,dn“,*(pl),*p2); int x971,y369;void main() fot(x,y);fot(x,y); ,9/4/2018,程序: sizeof(double)是( )。A)一种函数调用 B)一个双精度型表达式C)一个整型表达式 D)一个不合法的表达式,9/4/2018,程序: #include void main() struct date int year,month,dat; today;printf(“%dn“,sizeof(struct date); ,

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号