fork download
  1. #include <stdio.h>
  2.  
  3. struct student {
  4. int a;
  5. int b;
  6. int c;
  7. };
  8. int main(void) {
  9.  
  10. struct student aiu = {1,'A',2};
  11. struct student eoka = {2,.c=14};
  12.  
  13. printf("%d,%c,%d",aiu.a,aiu.b,aiu.c);
  14. printf("%d,%c,%d",eoka.a,eoka.b,eoka.c);
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
1,A,22,,14