I am confused about how to print the midpoint. Please suggest the required changes.
MIDPOINT OF A LINKED LIST
In the midpoint function, you are writing the return type as node, but you are simply printing the value… Either return the slow->data, and return type should be int or take the return type as void…