oo i see. thx for ur guidance =D
Type: Posts; User: lancetky
oo i see. thx for ur guidance =D
i not sure whether it is 53 cause in books in write there it should be prime number that 4 times the number of records. i dun really get wat it mean...
find the index value for hash table?? 0 till 52
how u determine the bins required??? i not really sure how to get the value
how do u decide ur hash value??
#include <stdio.h>
#include <stdlib.h>
#define HASH 53//how u determine this value??
int hashfunc (unsigned int ID);
void hash (int user);
int main()
{
...
i think i got it. thank for ur help =D
int asd=98765, k[5], i;
for(i=0;i<5;i++)
{
k[i]=asd%10;
asd=asd/10;
}
like this correct??
for example i got int of 15569542 and i wan to separate them to single digit like
1
5
5
6
9
5
4
2
please help and thank for ur help