What is the difference between call-by-value and call-by-name function parameters?
Answer Posted / Ravindra Kumar Suman
Call-by-value and call-by-name are two methods for passing arguments to functions in programming languages, including Scala. In Call-by-value, the actual argument value is evaluated before it's passed to the function, while in Call-by-name, the function call evaluates the argument expression only when its value is needed inside the function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers