In C language, some functions needs return no value , which keywords is used to denote this?
A: void
B: int
C: float
D: double
A: void
B: int
C: float
D: double
举一反三
- Which two are void examples of method overriding? () A: void setVar(float f) { x = f;} B: public void setVar(int f) { x =f;} C: public void setVar(float f) {return f;} D: public double setVar(float f) {return f;} E: protected float setVar() { x = 3.0f; return 3.0f; }
- 如下fun函数的类型是( )。fun(float x){double y;int z;y=x*x;z=(int)y;return(z);} A: void B: double C: int D: float
- 若同时定义了如下函数,fun(8,3.1)调用的是下列哪个函数( )。 A: void fun(float,int) B: void fun(double,int) C: void fun(char,float) D: void fun(double,double)
- 下面的函数定义,( )是正确的。 A: void f() { ...... return; } B: void f() { ...... return 0; } C: int f(); { ...... return; } D: double f(int x;int y) { ...... return; }
- Which of the following statements about keywords in functions are true..( ) A: The functions with suffiffiffixes of rnd are used to indicate the random number generator. B: The functions with suffiffiffixes of stat are used to indicate the statistics analysis. C: The functions with suffiffiffixes of fit are used to indicate the parametric estimation. D: The functions with suffiffiffixes of pdf are used to indicate the probability density function.