Use func to declare a function. Call a function by following its name with a list of arguments in parentheses. Use -> to separate the parameter names and types from the function’s return type?
Correct Answer: func greet(name: String, day: String) -> String { return "Hello \(name), today is \(day)." } greet("Bob", "Tuesday")
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Swift MCQ Questions