fork(1) download
  1. #include <stdio.h>
  2.  
  3. struct A {
  4. int b;
  5. };
  6.  
  7. struct A foo() {
  8. return (struct A){ .b = 42 };
  9. }
  10. int main(void){
  11. struct A a = foo();
  12. printf("%d\n", a.b);
  13. return 0;
  14. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
42