In how many ways we can capture the external variables in the lambda expression?

a) 1
b) 2
c) 3
d) 4

1 thought on “In how many ways we can capture the external variables in the lambda expression?”

  1. c
    Explanation: There are three ways in which we can capture the external variables inside the lambda expression namely capture by reference, capture by value and capture by both that is mixed capture.

Leave a Comment