Ask 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 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. 17 January, 23:24
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers