MCQs > IT & Programming > Swift > Options the code that will generate compilation error when executed. func abc(inout a: T, inout _ b: T) { let a1 = a a = b b = a1 print('\(a) \(b)') }

Swift MCQs

Based on your analysis of the following Apple Swift code, identify from the given options the code that will generate compilation error when executed.

func abc(inout a: T, inout _ b: T) {

let a1 = a

a = b

b = a1

print("\(a) \(b)")

}


Answer

Correct Answer:

var z =

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