home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16848 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.2 KB  |  47 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!news.univie.ac.at!hp4at!his
  3. From: his@gese.ge14.mdadv.gv.at (Horst Hirnschall)
  4. Subject: Re: fwrite & fread
  5. Message-ID: <1992Nov20.090205@gese.ge14.mdadv.gv.at>
  6. Originator: his@gese0n.ge14.mdadv.gv.at
  7. Sender: usenet@hp4at.eunet.co.at (USENET - Admin account)
  8. Nntp-Posting-Host: gese.ge14.mdadv.gv.at
  9. Organization: MD-ADV, Vienna, Austria
  10. References:  <92324.000622U17868@uicvm.uic.edu>
  11. Date: Fri, 20 Nov 1992 08:02:05 GMT
  12. Lines: 33
  13.  
  14.  
  15. In article <92324.000622U17868@uicvm.uic.edu>, <U17868@uicvm.uic.edu> writes:
  16.  
  17. [junk deleted]
  18.  
  19. |> Actually, it should have 194 bytes.
  20. |> typedef struct activity{
  21. |>     int  id;
  22. |>     int  mm;
  23. |>     int  dd;
  24. |>     int  yy;
  25. |>     char day[10];
  26. |>     int  hour;
  27. |>     int  min;
  28. |>     int  end_hour;
  29. |>     int  end_min;
  30. |>     char location[25];
  31. |>      char with_who[20];
  32. |>     char phone[11];
  33. |>     char subj[30];
  34. |>     char note[300];
  35. |>      int  flag;
  36. |> };
  37.  
  38. [more junk deleted]
  39.  
  40. How can you think a structure including a char-array with size 300 can have a size of 194 ?
  41. This structure actually HAS size bytes and you don't need to wonder.
  42.  
  43. Sometimes I wonder why people not able to count further than three try
  44. to program in C.
  45.  
  46. HIS Masters Voice.
  47.