How do I check the number of bytes consumed by a structure?

Viewed 25965

If I am creating a relatively large structure, how can I calculate the bytes it occupies in memory?

We can do it manually, but if the struct is large enough then how do we do it? Is there some code chunk or application?

8 Answers
Related