params 키워드를 사용하면 가변 개수의 인수를 사용하는 메서드 매개 변수를 지정할 수 있다. 개수 제한없이 매개변수를 넘길 수 있다 public static void UseParams(params int[] list) //선언 { for (int i = 0; i < list.Length; i++) { Console.Write(list[i] + " "); } Console.WriteLine(); } UseParams(1,2,3,4); //호출 1 2 3 4 //출력