String mutability in Swift

We can allow a string to be modified (mutated) or not by assigning it to constant(let) (doesn’t allow modification) or variable (var)(allows modification) in Swift. In case of objective-c and …

Advertisements

What do you mean by a literal value ?

A literal value is a value that appears directly in the source code. When we specify a literal value for a constant or variable, Swift compiler can automatically detect the type of …