0
What is “?” used for??
I can’t find why “?” is used in operators
6 Respuestas
+ 3
? Used in to use if inside an expression
For example
x += x>50 ? -25 : 25
It means decrease x by 25 if x more than 50. But increase by 25 if not.
+ 1
What language ?
+ 1
Then put swift in question's tags
0
swift
0
Thanks