MCQs > IT & Programming > Swift > Which of the following is correct to cube Integer?

Swift MCQs

Which of the following is correct to cube Integer?

Answer

Correct Answer: extension Int { mutating func cube () { self = selfselfself } }

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