页眉内容 页脚内容 43 阅读程序题 【2.1】以下程序的输出结果是 。 main(D ) { float a ; a=1/100000000; printf("%g" ,a); } A) 0.00000e+00 B) 0.0 C) 1.00000e-07 D) 0 【2.2】下面程序的输出结果是 B___。 #include <stdio.h> main( ) { int x=10 ; { int x=20 ; printf ("...
1、阅读程序模拟题1下面程序执行结果是 #include<stdio.h>void s *,int *);void main() int a=5, b=7, *ptr1, *ptr2;ptr1=&a, ptr2=&b;swap (ptr1,ptr2);printf(“*ptr1=%d,*ptr2=%dn”,*ptr1,*ptr2);printf(“a=%d,b=%dn”,a,b);void swap (int *p1, *p2)int p;p=*p1...
c语言程序阅读题目(带解释).pdf 关闭预览 想预览更多内容,点击免费在线预览全文 免费在线预览全文 阅读程序模拟题 1.下面程序执行结果是 #includestdio.h void swap(int *,int *); void main() { int a=5, b=7, *ptr1, *ptr2; ptr1=a, ptr2=b; swap (ptr1,ptr2); printf(“*ptr1=%d,*...
int n='c'; switch(n++) { default: printf("error");break; case 'a':case 'A':case 'b':case 'B':printf("good");break; case 'c':case 'C':printf("pass"); case 'd':case 'D':printf("warn"); } } 7.阅读以下程序:
阅读程序写结果试题 第四章 选择结构 (共20道题) 1. (于蕾) #include <stdio.h> void main( ) { int x,y,t; x=7;y=9; if(x<y) { t=x;x=y;y=t;} printf("%d,%d\n" , x,y ); } 运行结果: 9,7 2. (于蕾) #include <stdio.h> void main( ) { int x=1,a=2,b=3; swi...
C语言程序阅读题 -CAL-FENGHAI-(2020YEAR-YICAI)_JINGBIAN 13. 以下程序的输出结果是_B___。 #include main() { inta,b,d=241; a=d/100%9; b=(-1)(-1); } A、6,1B、2,1C、6,0D、2,0 答案:B 知识点:赋值表达式 16. 有如下程序 main...
阅读程序题,以下程序的输出结果是,main,D,floata,a,10,printf,g,a,A,00B,C,D,0,下面程序的输出结果是B,includemain,int,10,int,20,printf,d,printf,dn,A,10
C语言面试题之二——程序阅读题,#includeintmain(void){intj,k,n,temp,a[6][6];puts("InputaNum:");scanf("%d",&n);for(k=0;k<n;k+...
=’\0’ (24)j++ (25)c[k++] (26) i+j-k (27)head->next==0 (28)q->next (29)head->next (30) p ●阅读程序题(共11分) 6.以下程序运行时输出结果是( 6 )。 #define PT 3.14 #define S(x) PT*x*x main() ’ {int a=2; printf("%4.1f",6.28/S(a));...
c语言程序阅读题目(带解释)阅读程序模拟题 1.下面程序执行结果是 #include<stdio.h> void swap(int *,int *); voidmain() { int a=5, b=7, *ptr1, *ptr2; ptr1=&a, ptr2=&b; swap (ptr1,ptr2); printf(“*ptr1=%d,*ptr2=%d\n”,*ptr1,*ptr2); printf(“a=%d,b=%d\n”,a,b...