(Choose 1 answer)
What is the output of the below code?LinkedList<char> L=new LinkedList<char>(); //line 1
LinkedListNode<char> N = L.AddFirst('A'); //line 2
L.AddLast('B');L.AddAfter(N,'C');
//line 3 //line 4
L.AddBefore(N.Next, 'D');//line 5
foreach(char e in L)//line 6 //line 7
{ Console.Write(e);//line 8
}
A. ADCB
B. ABCD
C. ACBD
D. We cannot add elements before or after another element. We have to add them to the end of the linked list.
//line 9
Exit 7