fork download
  1. #include <stdio.h>
  2.  
  3. struct ret { int a; int b} hello(int c) {
  4. return (struct ret){ c, c + 1 };
  5. }
  6.  
  7. int main(int argc, char **argv) {
  8. struct ret result = hello(2);
  9. printf("%d %d", result.a, result.b);
  10. }
  11.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
2 3