fork download
  1. /* user defined structure type for a date */
  2. struct date
  3. {
  4. int month;
  5. int day;
  6. int year;
  7. };
  8.  
  9. #include <stdio.h>
  10. int main ()
  11. {
  12.  
  13. struct date today = {3,23, 1996}, tomorrow ;
  14.  
  15. tomorrow = today;
  16.  
  17. printf ("%d/%d/%d \n", tomorrow.month, tomorrow.day, tomorrow.year - 1900); /* Y2K Issue ? */
  18.  
  19. return (0);
  20.  
  21. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
3/23/96