http://www.geeksforgeeks.org/archives/9705
On Fri, Nov 25, 2011 at 12:36 AM, rahul sharma <[email protected]>wrote: > struct abc > { > int g; > float f; > double gj; > }; > > like in this int takes 4 bytes and we want align in 8 bytes so i wana know > that whether the float should put with int as 4 bytes are there to complete > 8 or float should be int+4 bytes padding and then store the float...... > > > acc to o/p float is stores after int > > -- > 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. > -- 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.
