When testing if something is NULL does it mean to see if something exists in that memory location, if that is (if not then please do explain) so then why is that am getting an error when i try to see if a struct*[] != NULL. here is the error that i have received.
error C2676: binary '!=' : 'HashTable' does not define this operator or a conversion to a type acceptable to the predefined operator
struct HashTable
{
int age;
static HashTable* table[5];
HashTable* next;
int createHash(char*, int);
void insert(int,int);
};
HashTable* HashTable::table[5];
void HashTable::insert(int position, int data)
{
if((*table)[position] != NULL)//error is on this line
{
HashTable* current = new HashTable;
}
}