fork download
  1. #include <stdio.h>
  2.  
  3. struct Foo{
  4. int _x;
  5. }
  6. Foo_factory(int z)
  7. {
  8. struct Foo x;
  9. x._x = z;
  10. return x;
  11. }
  12.  
  13. int main (int argc, char* argv[])
  14. {
  15. struct Foo foo = Foo_factory(42);
  16. printf("%d\n", foo._x);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
42