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