3.8k views
1 vote
write a function called switchnames that switches the first name and surname of the entries in a string array. the input is an n x 1 string array, with each array entry consisting of a first name and a surname placed in a string scalar. the function switches the first name and surname, and inserts a comma and space between the surname and the first name.

1 Answer

5 votes

DAnswer:

Step-by-step explanation:

User Bindia
by
8.7k points