Write the LC-3 code that accomplishes the local object allocation on line 36 in Figure 20.6 Consider the following code: int main (void) { std::vector intVector(0); // Vector of 0 ints...



Write the LC-3 code that accomplishes the local object allocation on


line 36 in Figure 20.6


Consider the following code:


int main (void)


{


std::vector intVector(0); // Vector of 0 ints

intVector.pushback(1);


intVector.pushback(2);


intVector.pushback(3);


}


a. Draw the memory layout of intVector when the code is finished.


b. Where in memory is intVector allocated?



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here