You have a function simple() that is called frequently in your code. You place the inline prefix on the function. What effect does it have on the code?kotlininline fun simple(x: Int): Int{ return x * x}fun main() { for(count in 1..1000) { simple(count) }}

🎲 Try a Random Question  |  Total Questions in Quiz: 83  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Kotlin Quiz — practice the complete quiz, review flashcards, or try a random question.

Kotlin MCQs For LinkedIn Skill Assessments.


You have a function simple() that is called frequently in your code. You place the inline prefix on the function. What effect does it have on the code?<br>kotlin<br>inline fun simple(x: Int): Int{<br> return x * x<br>}<br>fun main() {<br> for(count in 1..1000) {<br> simple(count)<br> }<br>}<br>