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<int>(new[] { 1, 2, 3, 4 }); Console.Write(stack.Pop());
A. 1
B. 4
C. 3
D. 2
Links:
Stack Class
Stack<T> Class
Collections and Data Structures