x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

Hi Gaurav, In order to align the data in memory,  one or more empty bytes (addresses) are inserted (or left empty) between memory addresses during memory allocation/creation for a structure. This concept is called padding.

Cause architecture of a computer processor is such a way that it can read 1 word (4 byte in 32 bit processor) from memory at a time. And to make use of this advantage of processor, data are always aligned as 4 bytes package which leads to insert empty addresses between other member’s address.

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer