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. {
  11. struct Date today={2025, 01, 8};
  12.  
  13. printf("year : %d\n",today.year);
  14. printf("month :%d\n",today.month);
  15. printf("day :%d\n",today.day);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
year : 2025
month :1
day :8