MCQs > IT & Programming > Swift > What will be the output of the following code snippet? var ary1 = [1, 2, 3, 4]; var ary2 = ary1; ary2.append(5); var result = ary1.count;

Swift MCQs

What will be the output of the following code snippet?

 var ary1 = [1, 2, 3, 4];

 var ary2 = ary1;

 ary2.append(5);

 var result = ary1.count;

Answer

Correct Answer: 4

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