Boa tarde, sou novo nestas andanças e precisava de ajuda para saber como inserir código que faça a exclusão de certas sequências no output, como por exemplo a sequência (1, 2, 3) no código seguinte:
 
	// Programa para imprimir todas as combinações possíveis de r em n 
	#include <stdio.h> 
	void combinationUtil(int arr[], int data[], int start, int end, int index, int r);
 
	// A função principal que imprime todas as combinações possíveis r 
	// em arr[] de tamanho n. Esta função usa principalmente combinationUtil() 
	void printCombination(int arr[], int n, int r) 
	{ 
	    // A temporary array to store all combination one by one 
	    int data[r];
 
	    // Print all combination using temporary array 'data[]' 
	    combinationUtil(arr, data, 0, n-1, 0, r); 
	}
 
	/* arr[] ---> Input Array 
	data[] ---> Temporary array to store current combination 
	start & end ---> Staring and Ending indexes in arr[] 
	index ---> Current index in data[] 
	r ---> Size of a combination to be printed */ 
	void combinationUtil(int arr[], int data[], int start, int end, 
	                    int index, int r) 
	{ 
	    // Current combination is ready to be printed, print it 
	    if (index == r)
 
	    { 
	        for (int j=0; j<r; j++) 
	            printf("%d ", data[j]); 
	        printf("\n"); 
	        return; 
	    }
 
	    // replace index with all possible elements. The condition 
	    // "end-i+1 >= r-index" makes sure that including one element 
	    // at index will make a combination with remaining elements 
	    // at remaining positions 
	    for (int i=start; i<=end && end-i+1 >= r-index; i++) 
	    { 
	        data[index] = arr; 
	        combinationUtil(arr, data, i+1, end, index+1, r); 
	    } 
	}
 
	// Driver program to test above functions 
	int main() 
	{ 
	    int arr[] = {1, 2, 3, 4, 5, 6}; 
	    int r = 3; 
	    int n = sizeof(arr)/sizeof(arr[0]); 
	    printCombination(arr, n, r); 
	}