199. Lambdas and Callback Management

Question.5

A developer compares the sizes of different lambdas:

auto a = []() {};                  // No captures
auto b = [x]() {};                 // Captures 1 int
auto c = [x, y, z, w]() {};        // Captures 4 ints

printf("%zu %zu %zu", sizeof(a), sizeof(b), sizeof(c));

On a 32-bit platform, what are the likely sizes?

Need Help? Refer to the Quick Guide below

Select Answer