What is Memory alignment??
Memory alignment refers to a practice commonly employed by programmers to ensure that the memory-objects used by their programs are placed at neatly divided addresses in memory, increasing the speed with which the central processing unit (CPU) can access those objects.Computer MemoryA computer’s memory temporarily stores information needed by running programs. This memory is constantly written, rewritten and read as programs start, run and are terminated.Memory AddressesAll information stored in memory is indexed to an address, expressed as a hexadecimal value (e.g. 0x4000). The computer accesses objects in memory using instructions referring to such addresses.Memory AlignmentMost computers prefer that objects in memory not be arranged randomly, but rather along neatly subdivided lines.