Question: Write the DisplayStrings() method called in the code below using a parameter array declared in the method header. The method should write its arguments in
Write the DisplayStrings() method called in the code below using a parameter array declared in the method header. The method should write its arguments in a single line, followed by a newline. What will the output be after running Main()? using static System.Console; class ParamsDemo { static void Main() { string[] names = {"Mark", "Paulette", "Carol"}; DisplayStrings("Ginger"); DisplayStrings("George", "Maria", "Thomas"); DisplayStrings(names); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
