I tried to do the given function but showing some error

showing the address of the node instead of the value

Dry run and check your deleteatmiddle function

Linked list before calling that function was 2->9->3->