Posted by: nepal_123 February 5, 2011
Login in to Rate this Post:
0
?
Hi Maverick,
In order to hash for a string, I would like to add the ASCII values of all the characters in that string and call it a SUM. Then I would like to have SUM % Table_Size. Let Table size be 1024 for example.
The Function prototype is :
int hash(char *name)
{
}
where *name is the pointer to the address of string.
In order to hash for a string, I would like to add the ASCII values of all the characters in that string and call it a SUM. Then I would like to have SUM % Table_Size. Let Table size be 1024 for example.
The Function prototype is :
int hash(char *name)
{
}
where *name is the pointer to the address of string.