why is size of empty class is 1 byte

Discussion in 'C++' started by Ajay, Aug 22, 2006.

  1. Ajay

    Ajay Guest

    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
    Ajay, Aug 22, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Carson
    Replies:
    10
    Views:
    20,834
    cplusprog
    Apr 18, 2010
  2. Alexander Terekhov

    Re: Why empty class size is 1 Byte ???

    Alexander Terekhov, Jul 7, 2003, in forum: C++
    Replies:
    0
    Views:
    409
    Alexander Terekhov
    Jul 7, 2003
  3. raghav
    Replies:
    0
    Views:
    651
    raghav
    Jul 7, 2003
  4. Sweety
    Replies:
    4
    Views:
    7,462
    rossum
    Aug 21, 2004
  5. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,761
    Smokey Grindel
    Dec 2, 2006
Loading...

Share This Page