单选题 难度 2
打擂台法。
下面代码的输出是( )。 int a[5] = {7, 2, 9, 4, 6}, m = a[0]; for (int i = 1; i < 5; i++) if (a[i] > m) m = a[i]; cout << m << endl;