if an empty class is given the size=0, then creating two objects of that empty class may be assigned the same address..... to prevent this thing every thing in c nd c++ have size atleast 1......
On Fri, Aug 19, 2011 at 1:11 AM, siddharth srivastava <[email protected]>wrote: > > > On 19 August 2011 01:05, priya ramesh <[email protected]>wrote: > >> why isn't the size of empty class not equal to zero?? >> > > because its a container for other items, but does occupy space for its own > storage. > >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Regards > Siddharth Srivastava > > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Regards Himanshu Kansal Msc Comp. sc. (University of Delhi) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
