When is padding required for a structure type variable? Group of answer choices When the structure contains a word-type variable, such as integer, float, and pointer, and the total number of bytes is not a multiple of four. As long as the structure contains a word-type variable, such as integer, float, and pointer. When the structure contains character type of variables. As long as the size of the structure is not a multiple of four.

Respuesta :

Answer:When the structure contains a word-type variable, such as integer, float, and pointer, and the total number of bytes is not a multiple of four ---A

Explanation:Structure padding is the assigning of members of a structure to appear at the correct byte boundary. To achieve this, padding is added by a complier so that structure members can appear in thier correct location, taking into consideration also the size of the structure which must be arranged orderly to the memory so that the padding can reoccur at the end of the structure.

For example--

For a structured type variable, padding is required when the structure contains a word-type variable, such as integer, float, and pointer, and the total number of bytes ie depending on the type of byte fed into the memory for the specific purpose.

ACCESS MORE
EDU ACCESS
Universidad de Mexico