What keyword is used to accept a variable number of parameter in a method?

 Posted by vishalneeraj-24503 on 1/13/2014 | Category: C# Interview questions | Views: 1987 | Points: 40

Params keyword is used as to accept variable number of parameters.We use params keyword inside function parameters.It has array values.

For Example:-

public int sum_of_numbers(params int[] values)


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response