Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Suppose an array named BR of 120 float is declared if the address where BR is

ID: 3726485 • Letter: 1

Question

1. Suppose an array named BR of 120 float is declared if the address where BR is located is 910 Answer the following (a) what is the size of the array BR in bytes (b) determine the address &BR;[2] (c) determine the address &BR; C100] (d) determine sizeof (BR) and determine sizeof (BR [2]) 2. Write a function named stuff that takes as input a long array and computes the aver age of all the positive values of the array. Your function should include all necessary input arguments. Further, your function should not have any output (printf statements). Lastly if there are no positive values in the array return a negative one. 3. write a function named compute that takes as its only input m and returns the value 2k Again the function should not have any outputs calls

Explanation / Answer

Base address of BR = 910

size of float is 4 byte

a) Size of BR array = 120*4 = 480 bytes

b) Address of BR[2] = 910 + 4*2 = 918

c) Address of BR[100] = 910 + 4*100 = 1310

d) size of BR = 120*4 = 480 and size of(BR[2]) = 4 byte