according to me 2nd structure must also have 16 bit size for 64 bit architecture as padding must also take place there also.
On Aug 6, 4:10 am, Shashank Jain <shashan...@gmail.com> wrote: > i dont understand the diff btw dem, could u plz elaborate? > > Shashank Jain > IIIrd year > Computer Engineering > Delhi College of Engineering > > On Sat, Aug 6, 2011 at 12:32 AM, Kamakshii Aggarwal > <kamakshi...@gmail.com>wrote: > > > > > > > > > in case of 64 bit, > > size of second structure will also be 16 not 8 > > > On Fri, Aug 5, 2011 at 11:40 PM, UTKARSH SRIVASTAV < > > usrivastav...@gmail.com> wrote: > > >> I think voth are just same.................. > > >> On Fri, Aug 5, 2011 at 10:57 AM, priya v <pria....@gmail.com> wrote: > > >>> in case of 64 bit machine y doesn't padding happen in the 2nd structure? > > >>> On Fri, Aug 5, 2011 at 11:21 PM, hary rathor > >>> <harry.rat...@gmail.com>wrote: > > >>>> no ,if u r using 32 bit machine . that will use 4 byte pointer size , > >>>> but in 64 machine that enforce to be size of 8 . where padding will > >>>> take int your given first structure > > >>>> so for 32 bit- size will 8 8 for both structure > >>>> for 64 bit - size will 16 and 12 respectively cause of 4 bit padding in > >>>> one structure > > >>>> hence 2nd structure is good for use > > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Algorithm Geeks" group. > >>>> To post to this group, send email to algogeeks@googlegroups.com. > >>>> To unsubscribe from this group, send email to > >>>> algogeeks+unsubscr...@googlegroups.com. > >>>> For more options, visit this group at > >>>>http://groups.google.com/group/algogeeks?hl=en. > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Algorithm Geeks" group. > >>> To post to this group, send email to algogeeks@googlegroups.com. > >>> To unsubscribe from this group, send email to > >>> algogeeks+unsubscr...@googlegroups.com. > >>> For more options, visit this group at > >>>http://groups.google.com/group/algogeeks?hl=en. > > >> -- > >> *UTKARSH SRIVASTAV > >> CSE-3 > >> B-Tech 2nd Year > >> @MNNIT ALLAHABAD* > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Algorithm Geeks" group. > >> To post to this group, send email to algogeeks@googlegroups.com. > >> To unsubscribe from this group, send email to > >> algogeeks+unsubscr...@googlegroups.com. > >> For more options, visit this group at > >>http://groups.google.com/group/algogeeks?hl=en. > > > -- > > Regards, > > Kamakshi > > kamakshi...@gmail.com > > > -- > > You received this message because you are subscribed to the Google Groups > > "Algorithm Geeks" group. > > To post to this group, send email to algogeeks@googlegroups.com. > > To unsubscribe from this group, send email to > > algogeeks+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/algogeeks?hl=en. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.