
564 Programming and Data Structures
Explanation As usual, the arrays are declared by using arr[], inl[], in2[], in3[], in4[] and in5[], each
having a length of 5. By using len gth (); function, the length of each key is calculated and the keys are
placed in the appropriate index. The number which is to be searched is input through the keyboard.
Here, snum variable is declared. Its length is calculated by using le n g t h () ; and by knowing the
length it is searched in the hash table.
SUMMARY
The following concepts are described in this chapter.
1) A tree is a predetermined non-empty set of items in which one element is called the roo ...