fork download
  1. struct month
  2. {
  3. int nbr_of_days;
  4. char name [3];
  5. };
  6.  
  7. int main ()
  8. {
  9. struct month days_and_name = {31, 'M', 'a', 'y'};
  10. char one_char;
  11.  
  12. one_char = days_and_name.name [2]; // the 'y' value
  13.  
  14. return (0);
  15. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
Standard output is empty