Question: 4 Hash Code A hash function takes an input and computes a representative integer in a repeatable way. Complete the main function of this program

 4 Hash Code A hash function takes an input and computes

4 Hash Code A hash function takes an input and computes a representative integer in a repeatable way. Complete the main function of this program so that it correctly calls the function hash on the message. The inner details of hash are hidden. 1 #include 2 9 3 4 * Fills in code_ptr with an integer hashcode of message 5 6 void hash(int *code_ptr, char *message) { 7 // hidden statements that take message and creates a secret integer 8 // which is stored in the integer pointed to code_ptr. } 10 11 12 int main(int argc, char **argv) { 13 char *message = argv[1]; 14 /* declare a variable code and call hash appropriately on the message */ 15 | 16 printf("%d", code); 17 return 0; 18 ) History Submit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!