题库 C++/C语言题库 题目列表 #include <iostream> using namespac...
单选题
#include <iostream>
using namespace std;
int sum = 0;
void swap(int & a, int & b) {
    int temp = a;
    a = b;
    b = temp;
}
void pailie(int begin, int end, int a[]) {
    if (begin == end) {
        for (int i = 0; i < end; i++)
            cout << a[i];
        cout << endl;
    }
    for (int i = begin; i < end; i++) {
        __________ // 在此处填入选项
    }
}

以上程序中,如果主函数为如下的程序,则最后的排列数是多少个?( )。

int main() {
    int a[5] = {1, 2, 3, 4, 5};
    pailie(0, 5, a);
    return 0;
}
A.

120

B.

60

C.

240

D.

180

题目信息
C++语言等级考试真题 2024年 八级 选择题
-
正确率
0
评论
1
点击