how is return keyword used with IF-ELSE statement?
Answers
Answered by
0
Answer:
if (cond) { expr } returns common base type of Unit and type of expr , just like if (cond) { expr } else { () } . As always, an if statement evaluates a logical condition and has to return a logical result.
Similar questions