单项选择题
执行以下程序后的输出结果为 ( )。#include<iostream>Using namespace std;void fun(int x, int y, int *cp, int *dp) {*cp=x+ y; 2*dp=x- y;}void maia() {int a, b, c, d; a=30; b=50; fun(a, b, &c, &d); cout<<c<<','<,d<<end1;}
A.50, 30
B.30, 50
C.80, 20
D.80, 20
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
友元运算符obj1>obj2被C++编译器解释为( )。
A.operator>(obj1,obj2)
B.>(obj1,obj2)
C.obj2.operator>(obj1)
D.obj1.operator>(obj2)
点击查看答案
单项选择题
已知程序中已经定义了函数test,其原型是int test (int,int,int);,则下列重载形式中正确的是( )。
A.char test(int, int, in;
B.double test (int,int,doubl;
C.int test(int ,int, int=0);
D.float test(int,int,float=3.5;
点击查看答案
相关试题
有如下程序:#include <iostream>using...
有以下程序#include <iostream>using ...
执行以下程序后的输出结果为( )。#incl...
关于模板,下列说法不正确的是( )。
关于抽象类,下列表述正确的是( )。