Date: Mon, 23 Jul 2001 21:25:41 -0700 (PDT) From: Manas Bhatt <bhatt_manas@yahoo.com> To: FreeBSD-Questions@FreeBSD.Org Subject: how to find word boundaries in FreeBSD Message-ID: <20010724042541.8025.qmail@web10703.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
hi all, This maybe of the mailing list but if someone can answer this question, please do reply. While determining sizeof variable in C using sizeof function, i found that the for structures it doesn't allocate just that amount of memory which is the sum of the memory required for individual structure members. It is always more than or equal to the sum of memory required for each of the individual member of the structure. Someone told me that it is because some variables like float, long tend to take only even memory locations. Thus this discrepancy. Can someone explain what is happening here. Also if one can guide me to tutorials, RTFM , it would be of great help. thanks manas __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010724042541.8025.qmail>