Swift 3 dataTypes
let - it is used for declaring the constant values.you cannot able to change the values at run time.
Var - It is variable at runtime.You can change its value at runtime.
In swift you can use the above data types to use the standard datatypes.Because they are flexible to change its datatype at runtime or compile time.So you can use let and var variables as NSString, String, NSMutablearray, NSArray, Integer, Float, Double, ..etc.
Var - It is variable at runtime.You can change its value at runtime.
In swift you can use the above data types to use the standard datatypes.Because they are flexible to change its datatype at runtime or compile time.So you can use let and var variables as NSString, String, NSMutablearray, NSArray, Integer, Float, Double, ..etc.
Comments
Post a Comment