199. Lambdas and Callback Management

Question.6

A developer tries to modify a captured value:

int count = 0;
auto increment = [count]() {
   count++;  // Modify captured copy
   return count;
};

Will this compile?

Need Help? Refer to the Quick Guide below

Select Answer