fork(1) 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 data[] = {
  11. {1,2,3},{4,5,6}
  12. };
  13.  
  14. for(int i=0;i<2;i++){
  15. printf("%d",data[i].a);
  16. }
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
14