fork download
  1. #include <stdio.h>
  2. typedef struct /*student*/{
  3. int id;
  4. char blood;
  5. double height;
  6. }list;//asano={1,.height=167};
  7. int main(void) {
  8. list asano={1,'a',167};
  9. printf("id:%d\n",asano.id);
  10. printf("blood:%c\n",asano.blood);
  11. printf("height:%lf\n",asano.height);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
id:1
blood:a
height:167.000000