Ask Question
12 April, 23:58

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

+5
Answers (1)
  1. 13 April, 02:59
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers