void printStatistic(HashTable *hashTable){ printf("Load Factor is %.10f\n", findLoadFactor(hashTable)); printf("The middle lenght is %.10f\n", middleLength(hashTable)); printf("Max chain's length is %d\n", findMaxLength(hashTable)); printf("Words in a max chain : "); printAllWords(hashTable, findMaxLength(hashTable)); printf("The number of different added words is %d\n", numOfAddedWords(hashTable)); printf("The number of empty cell's is %d\n", numberOfEmptyCell(hashTable)); }
int main(void) { int number[] = {2,3,4}; int n = sizeof(number)/sizeof(number[0]); printAllWords(number,n); return 0; }