有如下VB程序段:c = 0 :i = 1Do While i <=6 k = i For j = i + 1 To 7 If a(j)<= a(k) Then k = j Next j If a(i) <> a(k) Then t = a(i): a(i) = a(k): a(k) = t c = c + 1 End If i = i + 1Loop數(shù)組元素a(1)到a(7)的值依次為“9,9,8,16,45,9,78”。該程序段執(zhí)行后,變量c的值是()
A.0
B.3
C.4
D.6
B、3