【单选题】【消耗次数:1】
有以下函数定义:voidfun(intn,doublex){……}若以下选项中的变量都已正确定义并赋值,则对函数fun的正确调用语句是()
fun(inty,doublem);
k=fun(10,12.5);
fun(x,n);
voidfun(10,12.5);
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 有说明语句int a[10];及函数int fun(int x[10],int n){return sizeof(x);},则语句cout<<fun(a,10)<<endl;的显示结果是()
①  40
②  10
③  4
④  0
【单选题】 有说明语句int b[4][5];void fun(int*,int n);调用函数的正确语句是()
①  fun(b,20);
②  fun(b[0],20);
③  fun(b[0][0],20);
④  fun(b,20);
【单选题】 以下函数fun的返回值类型为( )。fun(double x){ ……}
①  int
②  void
③  无法确认类型
④  double
【单选题】 有如下模板定义:templateT fun(Tx,Ty){returnx*x+y*y;}在下列对fun的调用中,错误的是()
①  fun(2,8)
②  fun(2.0,8.2)
③  fun(2.3,8)
④  fun(2,8.3)
【单选题】 有函数原型void fun6(int);在下列选项中,不正确的调用是()
①  int a=21;fun6(a);
②  int a=15;fun6(a3);
③  int b=100;fun6(b);
④  fun6(256);
【单选题】 有语句typedef double funt(double);funt fun13,*pfun;则以下正确的赋值语句是()
①  pfun=fun13;
②  *pfun=fun13;
③  pfun=funt;
④  *pfun=funt;
【单选题】 已定义以下函数 fun(int*p) {return*p;} 该函数的返回值是()
①  不确定的值
②  形参p中存放的值
③  形参p所指存储单元中的值
④  形参p的地址值
【单选题】 下面程序的输出是 int fun3(int x) {static int a=3; a+=x; return(a); } void main() {int k=2,m=1,n; n=fun3(k); n=fun3(m); printf(%d\n }
①  3
②  4
③  6
④  9
【单选题】 若有定义int*x[3],b[10];则正确的赋值语句是()
①  x=b[0];
②  x=b;
③  x[0]=b[0];
④  x[0]=b[0];
【单选题】 以下程序的输出结果是() int a, b; void fun( ) { a=100; b=200; } main( ) { int a=100, b=100; fun( ); printf(%d%d \n, a,b); }
①  100200
②  100100
③  200100
④  200200
随机题目
【简答题】 Direction: Fill in the blank with the correct form of the word given.2. One has to be especially careful under such[填空1](circumstance).
【简答题】 Direction: Fill in the blanks with the words given below. Change the form if necessary.[integrity; conscience; yield; appoint; assure; ensure; demonstrate; clarify; preserve; scarce]2. Feeling that the directions for the exercise were difficult to understand, the students asked the teacher to[填空1]them by explaining them further.
【简答题】 设总体X的概率密度函数为:<img src="https://huaweicloudobs.ahjxjy.cn/F7726573AE266BD64057D1404FAE0500.png" title="11.png" alt="11.png"/>其中<img class="jc-formula" data-tex="\alpha 1" src="https://huaweicloudobs.ahjxjy.cn/31D91B666038B5A1687DE1E316A11099.png" style="vertical-align: middle;"/>是未知参数,<img class="jc-formula" data-tex="{ X }_{ 1 },{ X }_{ 2 }{ ,\quad ...\quad ,\quad X }_{ n }" src="https://huaweicloudobs.ahjxjy.cn/613AB336B03760930A7C8648F6773526.png" style="vertical-align: middle;"/>是取自总体X的样本,求参数<img class="jc-formula" data-tex="\alpha " src="https://huaweicloudobs.ahjxjy.cn/DEFDC04456737669FDEF7C42924B9B9C.png" style="vertical-align: middle;"/>的矩估计。
【简答题】 若D(X)=25,D(Y)=36,cov(X,Y)=12,则<img class="jc-formula" data-tex="{ \rho }_{ XY }" src="https://huaweicloudobs.ahjxjy.cn/F93A35519606553990779681E00AC347.png" style="vertical-align: middle;"/>=[填空1]
【简答题】 解释盒子模型的float属性。
【判断题】 影响网站风格的最重要的因素是特效和架构。
①  正确
②  错误
【判断题】 在网页源代码中标记可以缺少
①  正确
②  错误
【判断题】 居中对齐这样设置:…
①  正确
②  错误
【多选题】 在Dreamweaver中,只需要三个参数( )来加入一个Shockwave影片。
①  位置
②  高度
③  宽度
④  长度
【多选题】 下列关于网页设计的说法中,正确的有( )
①  冷暖色调在均匀使用时不宜靠近
②  纯度相同的两种颜色适宜放在一起
③  整个页面中最好有一个主色调
④  抽象线条的构图很容易造成重心不稳