Solved

Write the DisplayStrings() Method Called in the Code Below Using

Question 18

Essay

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);
}
}

Correct Answer:

verifed

Verified

The DisplayStrings() method should be si...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions