What does the following code?
import UIKit
var str1:String?="text1";
var str2:String="text2";
var int1:Int?=111;
var int2:Int=222;
var array:String[] = [str1, str2, int1, int2];
array=[];
Correct Answer: Str2 and int2 cannot be initialized because they are not optional variables.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Swift MCQ Questions