From mboxrd@z Thu Jan 1 00:00:00 1970 From: j.neuschaefer@gmx.net (Jonathan =?utf-8?Q?Neusch=C3=A4fer?=) Date: Sun, 22 Jan 2012 20:09:08 +0100 Subject: using sizeof operator In-Reply-To: References: Message-ID: <20120122190908.GA1548@debian.debian> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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