R
Rakesh
Hi All,
Assume I declared a vector of char * .
vector<string> x[100]
How the memory is allocated ?
If I push a string of 100 bytes .
How the memory allocation changes ?
After one push if I make another 50 pushes ( Of 100, 50, 250,
..... 10, 20, ..... ) consecutively how the memory allocation of the
vector changes
If I pop one element from the vector how the memory of the
vector changes .
If I pop consecutively 50 strings how the memory of the vector
changes ?
Thanks
Rakesh
Assume I declared a vector of char * .
vector<string> x[100]
How the memory is allocated ?
If I push a string of 100 bytes .
How the memory allocation changes ?
After one push if I make another 50 pushes ( Of 100, 50, 250,
..... 10, 20, ..... ) consecutively how the memory allocation of the
vector changes
If I pop one element from the vector how the memory of the
vector changes .
If I pop consecutively 50 strings how the memory of the vector
changes ?
Thanks
Rakesh