Computer Science, asked by delnabenny2, 5 months ago

how memory spaces are allotted to a structure​

Answers

Answered by sivasanjana
1

Explanation:

If we create an object of some structure, then compiler allocate contiguous memory for the data members of the structure. The size of allocated memory is at least the sum of sizes of all data members. The compiler can use padding and in that case there is will be unused space created between two data members.

Similar questions