Hi,
I need a structure that holds just 3 variables. Which (Class or struct) has the smallest memory footprint or are they both the same in size?
Many Thanks
-Alex
Printable View
Hi,
I need a structure that holds just 3 variables. Which (Class or struct) has the smallest memory footprint or are they both the same in size?
Many Thanks
-Alex
same.
Ok thanks!
-Alex
Even you can try union :)
while they do the same thing (aside from structs default access being public, while class private). I tend to use structs for more non-functional entity's like descriptors or smaller data types.