排序读程序
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
题目描述
阅读程序,判断输出结果。
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int a[5] = {6, 1, 9, 3, 5};
sort(a, a + 5);
cout << a[1] << " " << a[3];
return 0;
}
{{ select(1) }}
- A.
1 3 - B.
3 6 - C.
5 9 - D.
6 3