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