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 |
Explain the difference between static and dynamic binding of functions?
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is the advantage of an external iterator.
What is difference between c++ 11 and c++ 14?
What is an orthogonal base class in c++?
What is the meaning of c++?
What are guid?
What is a constant? Explain with an example.
Explain storage qualifiers in c++.
print first nodd numbers in descending order
Is there a new/delete equivalent of realloc?
What is this pointer in c++?