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
This is a discussion on Class Or Struct? within the C++ Programming forums, part of the General Programming Boards category; Hi, I need a structure that holds just 3 variables. Which (Class or struct) has the smallest memory footprint or ...
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![]()
* Debian 6.0.1 on Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM.
* lighttpd, php5, perl, eruby, python.
* geany, XHTML & CSS & JavaScript, C, C++.
* GTK+ C & perl-gtk2
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.