hey guys,
I have done the task right but just wanted to see the right solution and when I saw it I just got blown away!!
what is that actually? can someone explain it to me somehow? ( I mean the statement after "return")
why it goes so fast
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
C W
30 March 2021, 18:28
Are you referring to the ternary operator (https://en.wikipedia.org/wiki/%3F:) - Assuming your native language is German, here's another wikipedia page with it mentioned in (https://de.wikipedia.org/wiki/Bedingte_Anweisung_und_Verzweigung#Auswahloperator)?
(conditional expression) ? (value to evaluate if true) : (value to evaluate if false)
if (conditional expression)
(value to return if true)
else
(value to return if false)
0