Why segmentation fault

hi @Mihir163

in constructor you have to these two lines also

table=new Node<t>*[table_size];
        current_size=0;

in print function correct way of while loop is

 while (temp != NULL)
            {
                cout << temp->data << " ";
                temp = temp->next;
            }

Modified Code

not giving correct output plz see

you have to add one line in your code at line no 55
idnx=idnx%table_size;

after that it will run correctly

Modified Code

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course