From: j.neuschaefer@gmx.net (Jonathan Neuschäfer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: using sizeof operator
Date: Sun, 22 Jan 2012 20:09:08 +0100 [thread overview]
Message-ID: <20120122190908.GA1548@debian.debian> (raw)
In-Reply-To: <CAF5YyJPkrX9PBZCc5O8xQfFX5et5UnB6ka6Hv1Lco=L84M1VyA@mail.gmail.com>
On Sun, Jan 22, 2012 at 11:58:30PM +0530, Sukrit Sangwan wrote:
> also i want to ask why not use simply 8 instead of sizeof(u8).
That would be 1 most of the time. sizeof returns the size in bytes
(according to the C reference manual in K&R's book).
Apart from that, sizeof(u8) is more explicit about the intention.
HTH,
Jonathan Neusch?fer
next prev parent reply other threads:[~2012-01-22 19:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-22 18:14 using sizeof operator Sukrit Sangwan
2012-01-22 18:27 ` Daniel Baluta
[not found] ` <CAF5YyJMJN7ZZMuP-K7Bp2W7dVHd8sGeoeK_+1A2ho+FtWD2Fww@mail.gmail.com>
2012-01-22 20:21 ` Daniel Baluta
2012-01-22 18:28 ` Sukrit Sangwan
2012-01-22 19:09 ` Jonathan Neuschäfer [this message]
2012-01-23 10:42 ` Bernd Petrovitsch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120122190908.GA1548@debian.debian \
--to=j.neuschaefer@gmx.net \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.