1void swap(int *a,int *b) 2{ 3int m; 4 m = *a; 5 *a = *b; 6 *b = m; 7} 8void perm(int list[],int k,int m) 9{ 10int i; 11if(k > m) 12 { 13for(i =0; i