Linked List Midpoint

While returning midpoint if it is even no of nodes then it is only returning one node . What if we need both nodes??

it is never the case when u are required to return both the nodes
the question will telll u which one to return

https://ide.codingblocks.com/s/247283 What I am getting segmentation fault??

node* fast=head->next; // this is wrongline 35
node *fast = head;
is the correct thing