下列函数过程的定义语句中,错误的是( )
A: Public fun as Function
B: Function fun(n%) as Integer
C: Function fun(Byval n%)
A: Public fun as Function
B: Function fun(n%) as Integer
C: Function fun(Byval n%)
举一反三
- 下列哪些语句可以定义名为fun的函数 A: function fun(a){alert(a);} B: var fun=function(a){alert(a);} C: var fun=Function("function fun(a){alert(a);} D: fun(a)
- 有过程定义如下:Private Function fun(ByVal x As Integer, ByVal y As Integer, ByVal z As Integer), 则下列调用语句正确的是
- 下面的语句中,_________是正确的函数过程头定义。 A: Dim F1 As Function B: Dim F1 As Function(ByVal n%) C: Function F1(ByVal n%) As Integer D: Function F1 As Integer E: Function F1(ByVa F1!) As Integer
- 下面的语句中,_________是正确的函数过程头定义。 A: Dim F1 As Function B: Dim F1 As Function(ByVal n%) C: Function F1(ByVal n%) As Integer D: Function F1 As Integer E: Function F1(ByVa F1!) As Integer
- 设有如下函数定义:Function fun() As Integer Static a% fun = 3 * a + 1 a = a + 2End FunctionPrivate Sub Command1_Click() Dim n As Integer n = fun n = fun MsgBox (n)End Sub则在Command1_Click中 MsgBox 显示的结果是____________。