Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. (35 points) Say you wish to write a program that takes two arrays, X and Y, sums the corresponding element of each, and writes

image text in transcribed

5. (35 points) Say you wish to write a program that takes two arrays, X and Y, sums the corresponding element of each, and writes the result into a third array Z. Each array has 15 elements and is of the data type SHORT (16 bits). You know that the base addresses of X, Y, and Z are 0x00100000, 0x00200000, and 0x00300000. Specify which address(es) are used up by each index of each array. Example (although incorrect for this question): X[0] uses 0x00100000, 0x00100001, 0x00100002, 0x00100003, 0x00100004, Ox00100005 X[1] uses 0x00100006, 0x00100007, 0x00100008, 0x00100009, 0x0010000A, 0x0010000B Etc... 5. (35 points) Say you wish to write a program that takes two arrays, X and Y, sums the corresponding element of each, and writes the result into a third array Z. Each array has 15 elements and is of the data type SHORT (16 bits). You know that the base addresses of X, Y, and Z are 0x00100000, 0x00200000, and 0x00300000. Specify which address(es) are used up by each index of each array. Example (although incorrect for this question): X[0] uses 0x00100000, 0x00100001, 0x00100002, 0x00100003, 0x00100004, Ox00100005 X[1] uses 0x00100006, 0x00100007, 0x00100008, 0x00100009, 0x0010000A, 0x0010000B Etc

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions