top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

IN C++ What is Memory alignment?

+1 vote
321 views
IN C++ What is Memory alignment?
posted Dec 23, 2014 by Alwaz

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

The term alignment primarily means the tendency of an address pointer value to be a multiple of some power of two. So a pointer with two byte alignment has a zero in the least signi_cant bit. And a pointer with four byte alignment has a zero in both the two least signi_cant bits. And so on. More alignment means a longer sequence of zero bits in the lowest bits of a pointer.

answer Dec 24, 2014 by Mohammed Hussain
Similar Questions
+8 votes

Memory leak risks are higher in java or C++?? Explain it.

+3 votes

What are the preconditions on C++ type that allows its use in shared memory or read from a file descriptor?

+2 votes

What is the Best Pattern or Topology for avoid Memory Leaks in Projects

...