数组元素全排列、组合 C语言代码
permutation 排列combination 组合一、题目来源Linux C编程一站式学习课后练习题:https://akaedu.github.io/book/ch08s03.html定义一个数组,编程打印它的全排列。比如定义:#define N 3int a[N] = { 1, 2, 3 };则运行结果是:$ ./a.out1 2 3 1 3 2 2 1 3 2 3 1 3 2 1 3 1 2 1 2 3程序的主要思路是:把第1个数换到最前面来(本来就在最前