lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 20
What is the output of the following code snippet?
var stack = new Stack(); stack.Push("A"); stack.Push("B"); stack.Push("C"); stack.Push("D"); Console.Write(stack.Peek());
A. A
B. D
C. DCBA
D. C
Links:
Stack Class
Stack<T> Class
Collections and Data Structures