网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
假设某个函数的原型为:void foo( int x, int y ); 该函数分别被C编译器和C++编译器编译后在符号库中的名字是什么?
参考答案
更多 “假设某个函数的原型为:void foo( int x, int y ); 该函数分别被C编译器和C++编译器编译后在符号库中的名字是什么?” 相关考题
考题
下列函数原型声明中错误的是A.void Fun(int x=O,int y=0);B.void Fun(int x,int y);C.void Fun(int x,int y=0);D.void Fun(int x=0,int y);
考题
在下面的函数声明中,存在着语法错误的是 ( )。A.void BC(int a,int)B.void Bd(int,int)C.void BE(int,int=5)D.int BF(int x;int y)
考题
在下列原型所示的C++函数中,按“传值”方式传递参数的是( )。A.void f1(int x);B.void f2(int*x);C.void f3(const int*x);D.void f4(intx);
考题
若已经声明了函数原型“void fun(int a,double b=0.0);”,则下列重载函数声明中正确的是( )。A.void fun(int a=90,double b=0.0);B.int fun(int a,double B);C.void fun(double a,int B);D.bool fun(int a,double b=0.0);
考题
( 21 )已知函数 fun 的原型为int fun ( int,int,int ) ;下列重载函数原型中错误的是A ) char fun ( int,int ) ;B ) double fun ( int,int,double ) ;C ) int fun ( int,char* ) ;D ) float fun ( int, int, int ) ;
考题
以下函数声明中,存在语法错误的是______ 。A.int AA(int a,int);B.int *BB (int,int);C.void CC (int,int=5);D.void*DD (x,y);
考题
完成下列类的构造函数,初始化语句为______。 include class Test { private: int x,y
完成下列类的构造函数,初始化语句为______。include<iostream.h>class Test{private:int x,y;public:void Test(int initx,int inity){______}void printx( ){cout<<x<<"-"<<y<<"="<<x-y;}};void main( ){Test x(300,200);x.printx( );}
考题
有一个类A,以下为其构造函数的声明,其中正确的是( )。A.void A (int x){...}B.A (int x){...}C.a(int x){...}D.void a (int x){…}
考题
在下面的函数声明中,存在着语法错误的是A.void BC(int a,int)B.void BD(int,int)C.void BE(int,int t=5)D.int BF(int x;int y)
考题
下面正确的函数定义形式为( )。A.void fun();{}B.void fun(int x;int y) {}C.void fun() {}D.void fun(int x,y) {}
考题
下列函数的运行结果是()。includeint add(int a,int b);void main(){extern int x,y
下列函数的运行结果是( )。 #include<iostream.h> int add(int a,int b); void main() { extern int x,y; cout<<add(x,y)(<endl; ) int x(20),y(5); int add(int a,intB) { int s=a+b; return s; }A.25B.30C.20D.15
考题
下面的函数原型非法的是 ______。A.void f(int a=1,int b=1)B.int f(double f,char s,int i=1,int j)C.void f(int a, int b)D.int f(double f,char s,int i=1,int j=0)
考题
在下列原型所示的C++函数中,按“传值”方式传递参数的是( )。A.void fl(int X);B.void t2(int*X);C.void f3(Const int*X);D.void f4(intx);
考题
下列函数的运行结果是()。includeint add(int a,int b);void main(){extem int x,y;
下列函数的运行结果是( )。 #include<iostream.h> int add(int a,int b); void main() { extem int x,y; cout<<add(x,y)<<endl; } int x(20),y(5); int add(int a,int b) { int s=a+b; return s; )A.25B.30C.20D.15
考题
在下列原型所示的C++函数中,按“传值”方式传递参数的是A.void f1(int x);B.void f2(int*x);C.void f3(const int*x);D.void f4(int&x);
考题
若已经声明了函数原型“void fun(int a,double b=0.0);”,则下列重载函数声明中正确的是A.void fun(int a=90,double b=0.0);B.int fun(int a,double B) ;C.void fun(double a,intB) ;D.bool fun(int a,double b=0.0);
考题
在下面的函数声明中,存在语法错误的是______ 。A.void BC (int a,int)B.void BD (int,int)C.void BE (int,int =5)D.void BF (int x;int y)
考题
有函数原型void fun7(int*);在下列选项中,正确的调用是()A、double x=2.17;fun7(x);B、int a=15;fun7(a*3.14 );C、int b=100;fun7(b);D、fun7(256);
考题
下面的函数声明中,()是“void BC(int a, int b);”的重载函数A、 int BC(int x, int y);B、 void BC(int a, char b);C、 float AA(int a, char b);D、 int BC(int a, int b=0);
考题
单选题下面的函数声明中,()是“void BC(int a, int b);”的重载函数A
int BC(int x, int y);B
void BC(int a, char b);C
float AA(int a, char b);D
int BC(int a, int b=0);
考题
单选题假设函数fun已经定义,其原型为“void fun(int a,int b=7,char*p=“**”);”,下列函数调用中错误的是( )。A
fun(5)B
fun(5,8)C
fun(6,“##”)D
fun(0,0,“==”)
考题
多选题public class TestFive { private int x; public void foo() { int current = x; x = current + 1; } public void go() { for(int i=0;i5;i++) { new Thread() { public void run() { foo(); System.out.print(x + “, “); } }.start(); }}} Which two changes, taken together, would guarantee the output: 1, 2, 3, 4, 5, ?()AMove the line 12 print statement into the foo() method.BChange line 7 to public synchronized void go() {.CChange the variable declaration on line 3 to private volatile int x;.DWrap the code inside the foo() method with a synchronized( this ) block.EWrap the for loop code inside the go() method with a synchronized block synchronized(this) { // for loop code here }.
考题
单选题已知函数fun的原型为int fun(int,int,int);下列重载函数原型中错误的是( )。A
char fun(int,int);B
double fun(int,int,double);C
int fun(int,char*);D
float fun(int,int,int);
热门标签
最新试卷