I was wondering in a doubly linked list how do check to see if the initial list you have is Null?
This what I have (would this be correct):
node *middleOut(struct node*LL)
{
node *current = LL;
if(current == NULL)
{ cout<<"empty list"; }
//Rest of code is down here
}