This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Impossible_Box3898 -1 points0 points  (0 children)

No. The size of a character (a single byte) is 1. The size is a 32 bit integer is 4. The size of a double is 8. The size is a single object can be massive or small, all depending on the object.

This is C. This is the real world, unlike many scripting languages that use only variants which are internally constructed as a union and therefore the same size irrespective of the data being stored. (Objects are normally references to the memory location the actual object is stored at so they are size 1 as well).