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 the full form of ios?
Explain the difference between c & c++?
In the derived class, which data member of the base class are visible?
Describe exception handling concept with an example?
Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";
Can we get the value of ios format flags?
What is a constant reference?
What is difference between class and function?
What is c++ map?
why can't we declare data member of class auto register or extern
What are compilers in c++?
What is &x in c++?