473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 4454

"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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.