What is Memory Alignment?

Answers were Sorted based on User's Feedback



What is Memory Alignment?..

Answer / sv

Memory alignment is the restriction imposed on memory
allocation in such a way that values associated with
multibyte get assigned only at certain places of memory.
Such Memory alignment though generally not very common
issue in OOPS terminology as the compiler takes care of
allocation of bytes at proper locations.

Is This Answer Correct ?    15 Yes 1 No

What is Memory Alignment?..

Answer / achal ubbott

Above is correct. E.g. an ARM processor stores an integer(4
bytes wide) at an address which is multiple of 4 only. So
an integer would not be stored at say 0x0009 address.

Is This Answer Correct ?    5 Yes 5 No

Post New Answer

More C++ General Interview Questions

Explain the difference between static and dynamic binding of functions?

0 Answers  


Show the declaration for a pointer to function returning long and taking an integer parameter.

0 Answers  


What is the advantage of an external iterator.

0 Answers  


What is difference between c++ 11 and c++ 14?

0 Answers  


What is an orthogonal base class in c++?

0 Answers  






What is the meaning of c++?

0 Answers  


What are guid?

0 Answers  


What is a constant? Explain with an example.

0 Answers  


Explain storage qualifiers in c++.

0 Answers  


print first nodd numbers in descending order

7 Answers  


Is there a new/delete equivalent of realloc?

1 Answers  


What is this pointer in c++?

1 Answers  


Categories