lenelex.com
Home
Quizzes
Games
Register
Log in
Question 1 of 15
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. 4
B. 3
C. 5
D. 6
Links:
The [params] Keyword
Method Parameters
Single-Dimensional Arrays