Interview Question
Qus: Limitations in using Params Keyword?
There are three limitations in using params keyword-
1. We can send only comma separated list of arguments to a method.
2. No additional parameters are permitted after the params keyword in a method declaration.
3. Only one params keyword is permitted in a method declaration.
Answers (2)
1. We can send only comma separated list of arguments to a method.
2. No additional parameters are permitted after the params keyword in a method declaration.
3. Only one params keyword is permitted in a method declaration.
Params type can only be single dimensional array.