MCQs > IT & Programming > Swift > What is wrong with this code? if let s = String.init("some string") { print(s)}

Swift MCQs

What is wrong with this code? if let s = String.init("some string") { print(s)}

Answer

Correct Answer: This String initializer does not return an optional.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Swift Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it