以下程序执行后的输出结果是( )。
#include <iostream>
using namespace std;
void try(int,int,int,int);
int main( )
int x,y,z,r;
x=1;
y=2;
try(x,y,z,r);
cout<<r<<endl;
return 0;
void try(int x,int y,int z,int r)
z=x+y;
x=x*x;
y=y*y;
r=z+x+y;
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 14:23:31
免费下载:《单项选择》Word试卷
以下程序执行后的输出结果是( )。
#include <iostream>
using namespace std;
void try(int,int,int,int);
int main( )
int x,y,z,r;
x=1;
y=2;
try(x,y,z,r);
cout<<r<<endl;
return 0;
void try(int x,int y,int z,int r)
z=x+y;
x=x*x;
y=y*y;
r=z+x+y;
A.18
B.9
C.C. 10
D.不确定
本题关键词:输出结果,行为结果,行为结果评价,竣工结算程序,行政诉讼程序,结果,肝糖输出,输出浓度,执行过程组,输卵管结扎术后并发症;