MCQs > IT & Programming > Swift > Output of this segment of code: var x = 0 for index in 1...5 { ++x } print('(x)')

Swift MCQs

What is the output of this segment of code:
var x = 0 for index in 1...5 { ++x } print("(x)")

Answer

Correct Answer: 5

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