If the following C++ code is valid, show the output. If it is invalid, explain why. (3, 4)
q = current;
current = current->link;
current->link = temp->link;
trail = current->link;
current = trail->link;
cout <>info <><>info
<><>info
trail = temp->link; //Line 1
temp = temp->link->link; //Line 2
current = temp; //Line 3
current = current->link; //Line 4
trail->link = last->link; //Line 5
cout <>info <>
<>info <>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here