kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: horserivers@gmail.com (horseriver)
To: kernelnewbies@lists.kernelnewbies.org
Subject: why is this result ?
Date: Sat, 19 Jan 2013 07:40:43 +0800	[thread overview]
Message-ID: <20130118234043.GI2376@debian.localdomain> (raw)
In-Reply-To: <CABJqhQOL7=EwaGORsWmuZTu8R3+pQOcYxBwbkxzqossrK7NB1w@mail.gmail.com>

On Sat, Jan 19, 2013 at 09:15:23AM +0100, J?drzej Dudkiewicz wrote:
> >> Because it's not possible to have an object with nonzero size.  The
> >> address of every object must be unique, so they have to be separated by
> >> one byte anyway.
> >
> >   thanks!
> >   Here I do not define a object of type A ,just do sizeof operation to a A struct ,not a specified object.
> >   So if I defined A a , does  sizeof(a) have the same mean with sizeof(A)  ?
> >   what does the sizeof operator essentially?
> 
> Yes, sizeof(a) and sizeof(A) are identical. I understand sizeof(expr)
> as "tell me how many bytes I need to store result of expression expr"
.
When a is stored in one bytes, what is the mean or use of that byte data?

> -- 
> J?drzej Dudkiewicz
> 
> I really hate this damn machine, I wish that they would sell it.
> It never does just what I want, but only what I tell it.

           reply	other threads:[~2013-01-18 23:40 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CABJqhQOL7=EwaGORsWmuZTu8R3+pQOcYxBwbkxzqossrK7NB1w@mail.gmail.com>]

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=20130118234043.GI2376@debian.localdomain \
    --to=horserivers@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).