fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct list{
  4. int x;
  5. double y;
  6. char z;
  7. }asdfg;
  8.  
  9. int main(void) {
  10.  
  11. asdfg data[]={
  12. {2,5.4,'W'}
  13. };
  14.  
  15. printf("%d\n",data[0].x);
  16. printf("%f\n",data[0].y);
  17. printf("%c",data[0].z);
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
2
5.400000
W