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