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 data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
Explain the difference between overloading and overriding?
why and when we can declar member fuction as a private in the class?
How the V-Table mechanism works?
What do you know about near, far and huge pointer?
What do you mean by overhead in c++?
What is a mutable member?
What is std :: endl?
What are the uses of c++ in the real world?
What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }
Write a corrected statement in c++ so that the statement will work properly. if (x = y) x = 2*z;
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be