lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 20
What is the output of the following program?
class Program { static void Main() { var x = F(new int[] { 0, 1, 2 }, 3, 4); Console.WriteLine(x); } static int F(params object[] args) { return args.Length; } }
A. 5
B. 6
C. 3
D. 4
Links:
The [params] Keyword
Method Parameters
Single-Dimensional Arrays