C++

Asked • 09/13/19

Why isn't sizeof for a struct equal to the sum of sizeof of each member?

Why does the `sizeof` operator return a size larger for a structure than the total sizes of the structure's members?

1 Expert Answer

By:

Keith B. answered • 09/20/19

Tutor
4.6 (22)

Software Engineer and Math Geek

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.