strings

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?
sizeof(string)+sizeof(rest).
Do you need to account for the heap memory allocated by the string?
Topic archived. No new replies allowed.