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.  
  12. struct Foo f = {.x=54, .array[3] = 9 };
  13.  
  14. void print(void){
  15.  
  16. printf("%u", f.x);
  17. }
  18.  
  19. int main(){
  20. print();
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 2296KB
stdin
Standard input is empty
stdout
54