以下程序执行结果是__________ 。void fun(int x, int y, int z){ z=x*x+y*y; }void main(){ int a=31; fun(5,2,a); printf(“%d”,a); }
相似题目
-
以下程序的输出结果是___________。#includevoid fun(int x) {x=50;}void main(){int a=10;fun(a);printf(%d\n,a);}
-
有以下程序,程序的运行结果是 _________ 。 #include void main() { char ch='Z'; ch=(ch-'A'+1)%26+'A'; putchar(ch); }
-
以下程序的运行结果是____________#include stdio.hvoid main(){void increment();increment();increment();increment();}void increment(){int x=0;x+=1;printf(%d ,x);}
-
有以下程序,其运行结果是______。 #include void main() { int a[]={1,2,3,4},y,*p=&a[3]; ++*p; y=*p--; printf('y=%d',y); }
-
有以下程序: #include void main() { char a[][10] = {'Morning', 'Afternoon', 'Evening', 'Night'}; printf('%s',a[1]); } 程序运行后的输出结果是__________。
-
有以下程序 #include void main() { int y=10; while(y--); printf('y=%d',y); } 程序执行后的输出结果是_______。
-
以下程序执行后的输出结果是________。 #include \stdio.h\ void main() { int i; for(i=1;i<=40;i++) { if(i++%5==0) if(++i%8==0) printf(\%d\,i); } printf(\\\n\); }
-
已知字符a的ASCII码值为97,则以下程序的输出结果是__________。#include 'stdio.h'void main(){ char ch='c';printf('%c%d ',ch,ch);}
-
有如下程序段,执行后的输出结果是______。 #include void main() { struct a { int x; int y; }num[2]={{20,5},{6,7}}; printf('%d',num[0].x/num[0].y*num[1].y); }
-
以下程序执行后的输出结果是______。int sub(int n){int t;if(n==1)return 5;elsereturn t=sub(n-1)+3;}void main(){printf('%d ',sub(3));}
-
有下列程序 #include void main() { int a=0,b=0,c=0; if (++a || ++b && ++c) printf('%d,%d,%d', a, b, c); } 程序执行后的输出结果是________。
-
以下程序的输出结果是 ______。include<stdio.h>void prt(int*x,int*y,int*z){ printf("%d,%d,%d
-
下列程序的执行结果是______。include<stdio.h>union un{int i; char c[2};};void main(){union
-
以下程序的运行结果是 _____________ include "stdio.h" void main()x=%d y=%d z=%d
-
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
-
下列程序段的输出结果是 _______ 。 void main(); }
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
-
以下程序的输出结果是 ______。include<iostream.h>void main() {char w[][10]={ "ABC", "DEFGH"
-
下列程序的执行结果是______。 lnClude<stdio.h> union un { int i; char c[2]; }; void main() { union un x; x.c[0]=10 x.c[l]=1; printf("\n%d,x.i); }
-
下列程序的执行结果是_______。 include<stdio.h> union un { int i; char c[2]; }; void main() { union un x; x.c[0]=10; x.c[1]=1; printf("\n%d",x.i); }
-
有如下程序: include<iostream> using namespace std; class Base { public: void fun() { cout<<"Base::fun"<<endl; } }; class Derived: public Base { public: void tim() } ____________ cout<<"Derived:: fun"<<endl; } }; int main() { Derived d; d.fun(); return O; } 已知其执行后的输出结果为: Base::fun Derived::fun 则程序中下划线处应填入的语句是
-
以下程序的输出结果是 ______。include<iostream.h>void main(){ inti,j;for(j=10;j<=11;j++){fo
-
执行以下程序:includevoidmain(void){charc=0;cout<<c<<’/n’;}输出的结果是________。
-
以下程序若运行时输入ABC,则输出结果是______。 include include void main(); }
推荐题目
- 下列四幅图中,属于近视眼成像原理和远视眼矫正方法的分别是( )https://assets.asklib.com/source/1472180933683008965.png
- 人为利润中心的特点是产品在企业内部按内部转移价格流转而取得销售收入。
- 铁路专用通信包括哪些内容?
- 悬浮法和()法PVC树脂颗粒结构和性能均相似。
- QQ商城商户考核包含以下哪些内容()
- 国家助学贷款借款人提起申请和进行初审的部门是()。
- 事故发生机理的意外释放论,认为事故是一种不正常的或不希望的()。
- ◑产品生命周期指的是()◑A.产品使用寿命◑B.产品物理寿命◑C.产品合理寿命◑D.产品市场寿命
- 下列有关Excel电子表格的描述中,错误的是()
- 未经监理工程师签字,不得进行的工作不包括()