What data types are supported by Swift?
What is the range of values for a Int8?
-128 to 127
What is the range of values for an UInt8 ?
0 to 255
What is the range of values for an Int16 ?
-32.768 to 32.767
How can you determine the maximum and minimum values that can be stored by each integer type?
By using the max and min properties.
UInt8.max // returns 255
Int16.min // returns -32768
What are Character Literals?
Character Literals are single characters surrounded by double-quotes:
“A”
“B”
”!”
What are String literals?
String literals are character sequences surrounded by double-quotes:
“Hello, World”