Hi everyone,
I am writing the insert function for a hashtable and I am having one issue. When going to insert a new integer I have to check to see if a bin is full or not.
To do this I am doing,
while(array[hashinsert] !=0 )
However the compiler reads this as, if that bin does not have a 0 in it. How do I make it so it checks to see if it is already occupied.
Thanks.