This computer science problem involves algorithmic thinking and programming concepts. The solution below explains the approach, logic, and implementation step by step.

ScanSolve AI Answer
Answer
` operator.
The question asks to identify the Kotlin feature that allows for more compact function declarations by omitting curly braces and the return keyword for single-expression functions. The example clearly shows a function fun sum(a: Int, b: Int): Int = a + b which uses an equals sign (=) to directly assign the result of an expression as the function's body.
This specific syntax is known as an expression body in Kotlin. It is used when a function's body consists of a single expression, making the code more concise.
Let's evaluate the options:
= operator.The correct option is Expression Body Syntax.
3 done, 2 left today. You're making progress.
Get instant step-by-step solutions to any question. Free to start.
Ask Your QuestionStill have questions?
This computer science problem involves algorithmic thinking and programming concepts. The solution below explains the approach, logic, and implementation step by step.