Interview question: In c#, How can we create a function which can accept varying number of arguments?
By using the params keyword, a method parameter can be specified which takes a variable number of arguments or even no argument. After the params keyword used in a method declaration, no additional parameters are permitted. Also only one params keyword is allowed in a method declaration. [amazon_link asins=’B0719KCBZT,B0779CNVM8,B011V135LM,B01CZWN0TI,B078NRPJT6,B00F0P2H06,B01FFQ1FS4,B00XHVQZNA,B011V108H6|B000BJVUS6,B01HEZ5H6K,B00IG6GEVO,B0199NOWM0,B00SNH9TKO,B01I9EFN1Y,B00EEV2QVW,B0107BYPLG,B005ANYMG0′ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’85aaae9a-94e4-11e8-aef2-6dca01bb821b’]