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