/* */ /* Programma sviluppato da */ /* */ /* Giovanni DI CECCA */ /* */ /* http://www.dicecca.net */ /* */ #include #include #include typedef enum {falso, vero} logical; logical hash_search(int *table, int tablesize, int key); void hash (int *array, int *table, int dim, int tablesize); /* Prototipo di funzione */ main() { /*dichiarazione di variabili */ int *array, *table, i, tablesize, dim, key; printf("\nInserire il numero di elementi del vettore: "); scanf("%d", &dim); array =(int *)calloc(dim, sizeof(int)); for(i=0; i