下面子过程语句说明合法的是

admin2013-04-11  21

问题 下面子过程语句说明合法的是

选项 A、Sub f1(s1 As String*8)
B、Sub f1(n()As Integer)As Integer
C、Function f1(f1 As Integer)As Integer
D、Function f1(By Val n As Integer)

答案8

解析 选项A中,在定义Sub过程时,形参不能用定长字符串变量或定长字符串数组作为形式参数:选项B中,过程名不能被指定其数据类型:选项C中,函数名与形参名不能同名。只有选项D是正确的。
转载请注明原文地址:https://kaotiyun.com/show/kKhp777K
0

最新回复(0)