fork(4) download
  1. #include <iostream>
  2.  
  3. struct S { int a, b, c, d, e, f, g; };
  4.  
  5. int main() {
  6. S s = {};
  7. auto func = [&](){
  8. std::cout << s.a << s.b << s.c << s.d << s.e << s.f << s.g << "\n";
  9. };
  10. std::cout << sizeof(func) << "\n";
  11. return 0;
  12. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
4