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}; /* defines a variable of type struct date */
  14.  
  15. printf ("%d/%d/%d \n", today.month, today.day, today.year - 1900); /* Y2K Issue ? */
  16.  
  17. return (0);
  18.  
  19. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
3/23/96