Question
code in C++
Name: Homework #13 What are the two memory pools for programs running a modern operating system? 1. Given the following progr
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 1:
stack and heap
Answer 2:
a empty stack
b) before it will have
0x1018
Answer 3:
using the new or malloc or realloc
Answer 4: using free, delete
Answer 5:
using delete arr[]

Add a comment
Know the answer?
Add Answer to:
Name: Homework #13 What are the two memory pools for programs running a modern operating system? ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please answer all 5 questions, thanks. 1. What are the two memory pools for programs running...

    please answer all 5 questions, thanks. 1. What are the two memory pools for programs running a modern operating system? 2. Given the following program: #includec iostream» using namespace std; void func1(int); int main( int a 5, b 10; func1(a): return e; void func1 (int a) int z[2]; int y a. What is on the stack before the first function call (assume a memory starting address of 0x1018)? b. What is on the stack after the function call is executed...

  • Call stack question! Long one... The call stack is part of main memory that is reserved...

    Call stack question! Long one... The call stack is part of main memory that is reserved for function calling. Like all r memory it is finite, so can be exhausted resulting in a stack overflow. Recursive functions allocate space on the stack for each recursive call: if there are many such recursive calls a stack overflow can result. The questions that follow ask you to investigate recursive functions and stack overflows. Note that when running programs in the Linux terminal...

  • IN JAVA: List or draw out the memory contents for BOTH of the slides below. (you do not need to s...

    IN JAVA: List or draw out the memory contents for BOTH of the slides below. (you do not need to show addresses)Clearly list out what memory is stored in each region under the bolded (Stack, Heap, or Globals). Assume the garbage collector has not yet run. Multiple Objects Stack //Multiple dynamic objects class objx f int i void print ) f system.out.println ("i-" + i)i Heap / same as before public class DynamicExample3 f public static void main (Stringl] argv)...

  • questions from my assembly book. 12 Assembly Subroutines . OBLEMS 121 122 123 When a instructio...

    questions from my assembly book. 12 Assembly Subroutines . OBLEMS 121 122 123 When a instructio Which instruction is used to call a function? struction is used to return from a function? call instruction is executed, how does the processor know how to get back to where t came from? 12.4 Which registers are used for passing arguments? 5 Which registers are used for returning results? 126 Which registers must be preserved before using? 12.7 What instructions can be used...

  • problem 2 and 3 1. For each variable (a-g) describe whether the variable itself is global...

    problem 2 and 3 1. For each variable (a-g) describe whether the variable itself is global or local, static or not static, and initialized or uninitialized. (Hints: Global variables are always static. Local variables become static when declared with 'static'. For pointers, consider the pointer itself, not anything the pointer might point to.) 2. For each variable (a-g), describe where it is located when DoFunctionB is running. That is, for each variable, describe whether it is on the stack, in...

  • Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory...

    Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory allocation) and have it pointed to by a pointer (of type int * ) named ptr_1. Use ptr_1 to assign the number 7 to that dynamically allocated integer, and in another line use printf to output the contents of that dynamically allocated integer variable. Write the code to dynamically allocate an integer array of length 5 using calloc or malloc and have it pointed...

  • Multiple Choice Multiple Choice Section 4.1 Pointers and Dynamic Memory Consider the following statements: int *p;...

    Multiple Choice Multiple Choice Section 4.1 Pointers and Dynamic Memory Consider the following statements: int *p; int i; int k; i = 42; k = i; p = &i; After these statements, which of the following statements will change the value of i to 75? A. k = 75; B. *k = 75; C. p = 75; D. *p = 75; E. Two or more of the answers will change i to 75. Consider the following statements: int i =...

  • Using C programming

    Using C, create a data file with the first number being an integer. The value of that integer will be the number of further integers which follow it in the file. Write the code to read the first number into the integer variable how_many.Please help me with the file :((This comes from this question:Write the code to dynamically allocate ONE integer variable using calloc (contiguous allocation) or malloc (memory allocation) and have it pointed to by a pointer (of type int...

  • This assignment is comprised of 3 parts: ​All files needed are located at the end of...

    This assignment is comprised of 3 parts: ​All files needed are located at the end of the directions. Part 1: Implementation of Dynamic Array, Stack, and Bag First, complete the Worksheets 14 (Dynamic Array), 15 (Dynamic Array Amortized Execution Time Analysis), 16 (Dynamic Array Stack), and 21 (Dynamic Array Bag). These worksheets will get you started on the implementations, but you will NOT turn them in. ​Do Not Worry about these, they are completed. Next, complete the dynamic array and...

  • please write in c++. 4 Derived class JPG 4.1 Class declaration • The class JPG inherits...

    please write in c++. 4 Derived class JPG 4.1 Class declaration • The class JPG inherits from File and is a non-abstract class. 1. Hence objects of the class JPG can be instantiated. 2. To do so, we must override the pure virtual function clone() in the base class. • The class declaration is given below. class JPG : public File { public: JPG(const std::string& n, int n, int w, const double rgb()) : File(...) { // ... } *JPG()...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT