cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
strings
strings
Nov 18, 2010 at 3:06pm UTC
pranav58
(1)
structure will have memory equal to sum of the memory of the members variables in the structure. what will be the size of the structure if it has string as one of its member variables?
Nov 18, 2010 at 3:12pm UTC
Athar
(4466)
sizeof(string)+sizeof(rest).
Nov 18, 2010 at 11:09pm UTC
PanGalactic
(1658)
Do you need to account for the heap memory allocated by the string?
Topic archived. No new replies allowed.