Computer Science, asked by anjanachauhan079, 3 months ago

how is return keyword used with IF-ELSE statement?​

Answers

Answered by taibanoori1998
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