From: horserivers@gmail.com (horseriver) Date: Sat, 19 Jan 2013 07:40:43 +0800 Subject: why is this result ? In-Reply-To: References: <20130118035015.GA3430@debian.localdomain> <50F9522E.5020508@redhat.com> <20130118170515.GA2376@debian.localdomain> Message-ID: <20130118234043.GI2376@debian.localdomain> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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.