题目内容:
设有如下程序 Private Sub Search(a( )As Variant,ByVa1 key As Variant,index%) Dim I% For I=LBound(a) To UBound(a) If key=a(1) Thenindex=IExit SubEnd If Next I index=IEnd SubPrivate Sub Form_Load( ) Show Dim b( ) As Variant Dim n As Integer b = Array(1,3,5,7,9,11,13,15) Call Search(b, 11 ,n) Print nEnd Sub程序动行后,输出结果是 【15】 。
参考答案:
答案解析: