Home »
MCQs »
Scala MCQs
Which statement in Scala is used to create a tail-recursive function?
76. Which statement in Scala is used to create a tail-recursive function -
- @newtailRec
- @tailRecFunc
- @tailRec
- @tailrec
Answer: D) @tailrec
Explanation:
The @tailrec is is used to create a tail-recursive function.