Question: - Execute the calc _ hash function shown in the hash search example below with multiple inputs on a PC and display the results (
Execute the calchash function shown in the "hash search example" below with multiple inputs on a PC and display the results hash values
It can also be executed by simply adding the main function:
int main
printfdn calchashcomputer;
printfdn calchashCalifornia;
return ;
TABSIZE must be defined appropriately.
"hash search example"
Table tabTABSIZE;
int calchashchar name
int i hashval;
hashval;
while name
hashval name;
return hashvalTABSIZE;
Table lookuptabchar name
Table pe;
for petabcalchashname; peNULL; pepenext
if strcmppename, name
return pe;
return NULL;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
