Ask Question
25 September, 14:18

Suppose that a program's data and executable code require 1,024 bytes of memory. A new section of code must be added; it will be used with various values 70 times during the execution of a program. When implemented as a macro, the macro code requires 73 bytes of memory. When implemented as a procedure, the procedure code requires 132 bytes (including parameter-passing, etc.), and each procedure call requires 7 bytes. How many bytes of memory will the entire program require if the new code is added as a procedure? 1,646

+1
Answers (1)
  1. 25 September, 16:23
    0
    The answer is 1646

    Explanation:

    The original code requires 1024 bytes and is called 70 times, it requires 7 byte and its size is 132 bytes

    1024 + (70*7) + 132 = 1024 + 490 + 132

    = 1646
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Suppose that a program's data and executable code require 1,024 bytes of memory. A new section of code must be added; it will be used with ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers