LearnFrenzy
Sign in Take a free test

Lambda Expressions · Lambda MCQ · Question 1

What is a lambda expression in C++? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 1 Back to Exercise

What is a lambda expression?

  • A A macro
  • B An anonymous function object that can capture variables from its surrounding scope Correct
  • C A pointer to a member
  • D A kind of loop
Correct Answer: Option B

It was introduced in C++11.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links