I have added the code to implement Ternary search in C. It takes input as the number of integers to be present in the array. It then inserts numbers in the array using a random function. It then chooses an element at random and searches for it using the TernS function.
I have added the code to implement Ternary search in C. It takes input as the number of integers to be present in the array. It then inserts numbers in the array using a random function. It then chooses an element at random and searches for it using the TernS function.