answersLogoWhite

0

to satisfy structre member alignment rules

structure padding needed when alignment matters, which is useful for performance and avoids potential bus errors when alignment is a must on a particular architecture, please refer http://www.refcode.net/2013/02/structure-padding-explained.html for detailed explanation

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Why need a structure padding in structure?

structure padding matters most when alingnment matters, which helps in potential performance gain and avoiding possible bus errors, please refer http://www.refcode.net/2013/02/structure-padding-explained.html for detailed explanation


How are structure elements stored in memory in c?

Structure elements in C are stored in memory contiguously based on the order in which they are declared in the structure definition. The elements are typically aligned to memory addresses that are multiples of their size to optimize access speed. The size of the structure is determined by the sum of the sizes of its individual elements, possibly with padding to ensure proper alignment.


Do I need structure of turbo c plus plus?

Yes.


What is the use of structure padding?

Structure padding is used to align the data members in a structure to memory addresses that are multiples of their size or the machine's word size. This helps in optimizing memory access and improving performance by reducing memory fragmentation and making data retrieval more efficient.


Does wood need to be on top of padding?

no it has to be under it


How to overcome structure padding?

I think we can use #pragma pack(1) By this the structure will he paked in 1 byte order so there will be no waste of memory .


Does wood flooring need padding?

no because I have it in my basement its fine without it.


Is there a population chart that shows fity years of population in New York?

{| ! style="PADDING-RIGHT: 1px; PADDING-: 1px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px" | 1950 | 7,891,957 ! style="PADDING-RIGHT: 1px; PADDING-: 1px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; BORDER-BOTTOM: #bbbbbb 1px solid" | 1960 | 7,781,984 ! style="PADDING-RIGHT: 1px; PADDING-: 1px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px" | 1970 | 7,894,862 ! style="PADDING-RIGHT: 1px; PADDING-: 1px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px" | 1980 | 7,071,639 ! style="PADDING-RIGHT: 1px; PADDING-: 1px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px" | 1990 | 7,322,564 ! style="PADDING-RIGHT: 1px; PADDING-: 1px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px" | 2000 | 8,008,288 |}


You are in between a b anc c cup size for bras you fall out of a b but a c is too big what size should you get?

u should get a c cup and fill it in with padding


What equipment do you need to skate?

ice skates...butt padding (I know from expierience)


Who was Oliver Daddy Warbucks?

He was a character in the comicstrip Little Orphan Annie.{| id="ezSearchBarTABLE" class="ezui-corner-all" style="background-color: #ffe; border: 2px solid #555; padding: 1px; z-index: 9999999; display: block; vertical-align: bottom" |- style="padding: 0" | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 0px" | |- style="padding: 0" | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 4px" | | style="padding: 0; padding-right: 0px" | |- style="padding: 0" | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 0px" | |}+1[[#|close]][[#|close]][[#|pin]][[#|pin]][[#|search]][[#|minimize]][[#|forward]][[#|back]][[#|ViewText]][[#|]][[#|]][[#|zoomout]][[#|zoomin]][[#|zoomin]]{| id="ezSearchBar" style="border: 0; display: none; vertical-align: bottom; padding-bottom: 2px" | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | |}


Where can you download Issue?

If you mean comics issues, you can buy a subscription to dc comics and have them available for digital download. {| id="ezSearchBarTABLE" class="ezui-corner-all" style="background-color: #ffe; border: 2px solid #555; padding: 1px; z-index: 9999999; display: block; vertical-align: bottom" |- style="padding: 0" | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 0px" | |- style="padding: 0" | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 4px" | | style="padding: 0; padding-right: 0px" | |- style="padding: 0" | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 2px" | | style="padding: 0; padding-right: 0px" | |} +1[[#|close]] [[#|close]][[#|pin]][[#|pin]][[#|search]][[#|minimize]][[#|forward]][[#|back]][[#|ViewText]][[#|]][[#|]][[#|zoomout]][[#|zoomin]][[#|zoomin]] {| id="ezSearchBar" style="border: 0; display: none; vertical-align: bottom; padding-bottom: 2px" | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | | style="padding-right: 4px" | |}