fork download
  1. #include <string.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. struct Foo
  6. {
  7. int x;
  8. int array[100];
  9. };
  10.  
  11. void print(struct Foo);
  12.  
  13. void bar()
  14. {
  15. struct Foo f;
  16. f.x = 54;
  17. f.array[3]=9;
  18. print(f);
  19. }
  20.  
  21. void print(struct Foo f){
  22. printf("%u", f.x);
  23. }
  24.  
  25. int main(){
  26. bar();
  27. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
54