472,993 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,993 software developers and data experts.

why empty class has size 1 byte

Hi all,
Please tell me why empty class has one Byte Size.
thanks in Advance..
Ajay

Aug 22 '06 #1
7 4437

"Ajay" <aj**********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi all,
Please tell me why empty class has one Byte Size.
thanks in Advance..
Why are you asking this _again_? You asked that same question hours ago,
and it was answered.

I'm sure it's also in the FAQ, which you should read. That's at:

http://www.parashift.com/c++-faq-lite/

-Howard


Aug 22 '06 #2
Hi howard,
I did not ask this question before....anyways..thanks
for the URL..
Ajay
Howard wrote:
"Ajay" <aj**********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi all,
Please tell me why empty class has one Byte Size.
thanks in Advance..

Why are you asking this _again_? You asked that same question hours ago,
and it was answered.

I'm sure it's also in the FAQ, which you should read. That's at:

http://www.parashift.com/c++-faq-lite/

-Howard
Aug 22 '06 #3
Ajay <aj**********@gmail.comwrote:
Howard wrote:
>"Ajay" <aj**********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegr oups.com...
Hi all,
Please tell me why empty class has one Byte Size.
thanks in Advance..

Why are you asking this _again_? You asked that same question hours ago,
and it was answered.

I'm sure it's also in the FAQ, which you should read. That's at:

http://www.parashift.com/c++-faq-lite/

Hi howard,
I did not ask this question before....anyways..thanks
for the URL..
Yes you did. In fact, you asked it 6 times, about 9 hours ago:

http://groups.google.com/group/comp....75a08df240b66/

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Aug 22 '06 #4

"Ajay" <aj**********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...

please don't top-post. I've rearranged this properly:
>"Ajay" <aj**********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegr oups.com...
Hi all,
Please tell me why empty class has one Byte Size.
thanks in Advance..

Why are you asking this _again_? You asked that same question hours ago,
and it was answered.

I'm sure it's also in the FAQ, which you should read. That's at:

http://www.parashift.com/c++-faq-lite/
Hi howard,
I did not ask this question before....anyways..thanks
for the URL..
You asked it six times in a row earlier this morning! (The message subject
was "why is size of empty class is 1 byte".) If you didn't, then there's
another emailer at your email address (aj**********@gmail.com) who's asking
the same question!

-H
Aug 22 '06 #5
Hello Marcus,
Don be a freak...I posted it but i cud not see it
for a long time...so i thought it failed to post so i posted again...Be
cool man' :)
Ajay..

Marcus Kwok wrote:
Ajay <aj**********@gmail.comwrote:
Howard wrote:
"Ajay" <aj**********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi all,
Please tell me why empty class has one Byte Size.
thanks in Advance..

Why are you asking this _again_? You asked that same question hours ago,
and it was answered.

I'm sure it's also in the FAQ, which you should read. That's at:

http://www.parashift.com/c++-faq-lite/
Hi howard,
I did not ask this question before....anyways..thanks
for the URL..

Yes you did. In fact, you asked it 6 times, about 9 hours ago:

http://groups.google.com/group/comp....75a08df240b66/

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Aug 23 '06 #6
My apologies to you all....but i thought the connection is failed and i
cliked the SUBMIT button amny times....even after that i had gone into
MY MESSAGES whether my post has come ..it was not there so again i
posted in the evening...

Ajay
Howard wrote:
"Ajay" <aj**********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...

please don't top-post. I've rearranged this properly:
"Ajay" <aj**********@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
Hi all,
Please tell me why empty class has one Byte Size.
thanks in Advance..

Why are you asking this _again_? You asked that same question hours ago,
and it was answered.

I'm sure it's also in the FAQ, which you should read. That's at:

http://www.parashift.com/c++-faq-lite/
Hi howard,
I did not ask this question before....anyways..thanks
for the URL..

You asked it six times in a row earlier this morning! (The message subject
was "why is size of empty class is 1 byte".) If you didn't, then there's
another emailer at your email address (aj**********@gmail.com) who's asking
the same question!

-H
Aug 23 '06 #7
Ajay wrote:
My apologies to you all....but i thought the connection is failed and i
cliked the SUBMIT button amny times....even after that i had gone into
MY MESSAGES whether my post has come ..it was not there so again i
posted in the evening...
Please don't top-post, your reply belongs after or interleaved with the
message you are replying to.

Welcome to Usenet, it takes time for your message to propagate, so you
should wait an hour or so before posing again.

--
Ian Collins.
Aug 23 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
3
by: tornado | last post by:
Hi all, I am pretty new to PHP. I was reading PHP manual and trying out the example from 2nd chapter (A simple Tutorial). When i try to print the variable as given in the example it returns...
4
by: Sweety | last post by:
hello, why sizeof an empty class why 1 byte ? plz illustrate this ? bye
8
by: ishekara | last post by:
Hi all, An object of a class A which has no member variables and no member functions, still the size of the object is 1 byte, if there is a byte member variable then also the size of the object...
6
by: free2cric | last post by:
Hi, What will the syntax sound like for checking size of an empty class? what will be the size. Thanks, Cric
4
by: avranju | last post by:
Hi, We have a few exception marker classes in a project that are used only to throw exceptions. I mean stuff like this (this may not be such a hot idea for doing exception handling - a simple...
1
by: Ajay | last post by:
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
9
by: Morgan Cheng | last post by:
Hi, I once worked for java in embedded system. Since the memory is limited in embedded system, there are some guidelines for programming. One of them is "Don't create too many classes, because...
6
by: deepakvsoni | last post by:
what is the size of an class with not data members? ex: class A { }; also sizeof ? class A{ int f(){ cout<<"Hello";
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.