Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > why is size of empty class is 1 byte

Reply
Thread Tools

why is size of empty class is 1 byte

 
 
Ajay
Guest
Posts: n/a
 
      08-22-2006
Hello All, I have one question in mind...when you derive an empty class
and see its size it comes 1 byte,can somebody tell me why.....Thanks in
advance.
Ajay

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Why empty class size is 1 Byte ??? John Carson C++ 10 04-18-2010 11:40 AM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Size of an empty class why 1 byte ? Sweety C++ 4 08-21-2004 09:46 PM
Re: Why empty class size is 1 Byte ??? raghav C++ 0 07-07-2003 10:44 AM
Re: Why empty class size is 1 Byte ??? Alexander Terekhov C++ 0 07-07-2003 08:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57