正确的自定义标识符是()
A: n=9
B: x*y
C: day
D: float
A: n=9
B: x*y
C: day
D: float
举一反三
- 下面函数定义格式正确的是( ) A: float f(float x, float y); B: float f(float x;float y) C: float f(float x, y) D: float f(float x, float y)
- 下面函数定义正确的是_____。 A: float fun(float x; float y){ return x*y;} B: float fun(float x, y){ return x*y;} C: float fun(x,y){ int x,y; return x*y;} D: float fun( int x, int y){ return x*y; }
- 【单选题】设有定义:int x=5, y=2; 则下列语句中正确的是:(_____) A: x = float(x) % y; B: x = float(x) / y; C: x = (float)x % y; D: x = (float)x / y;
- 下列函数的定义,正确的是( )。 A: float sum(x,y) B: float x,y;…… C: float sum(float x,float y); D: …… E: float sum(float x,float y) F: …… G: float sum(floatx,floaty) H: ……
- 以下正确的定义函数首部的形式是( )。 A: float func(int n;float x) B: float func(int n,float x); C: float func(int n;float x); D: float func(int n,float x)