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
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.
"If you tell the truth, you don't have to remember anything"
-Mark Twain
Ok thanks!
-Alex
Even you can try union
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with xfce4.
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.