+ 1

What does ? mean in Swift

I Know this might've been discussed in the lessons but I still need a bit of classification. In swift they use the question mark quite a bit

13th Jul 2019, 2:35 AM
Abby Blancett
Abby Blancett - avatar
1 ответ
+ 3
the question mark is used for ternary operators for example: a>b?a:b returns a if a is bigger than b otherwise returns b
13th Jul 2019, 3:18 AM
Pikachu
Pikachu - avatar