A

Admin • 831.35K Points
Coach

Q. Can a lambda expression have multiple statements in its body?

  • (A) No
  • (B) Yes, enclosed within curly braces
  • (C) Only if each statement is on a new line
  • (D) Only if using semicolons

Explanation by: Admin
Multiple statements in a lambda body must be enclosed in `{}`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.