What is Memory Alignment?
Answers were Sorted based on User's Feedback
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 |
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 |
What is exception handling in C++?
What is c++ best used for?
Is c++ harder than java?
What are different types of loops in c++?
What is an overflow error?
Can circle be called an ellipse?
What are the different types of polymorphism in c++?
When the design recommends static functions?
What is the stack?
What is the full form of india?
What is abstraction with real time example?
How many static variables are created if you put one static member into a template class definition?