Home / Expert Answers / Computer Science / nbsp-17-consider-the-following-extract-from-a-c-program-int-i-int-j-3-int-m-pa504

(Solved):   17. Consider the following extract from a C program: int \( i \); int \( j=3 \); int \( \m ...



17. Consider the following extract from a C program:
int \( i \);
int \( j=3 \);
int \( \mathrm{A}[16] \);
for \( (i=0 ; i<16

 

17. Consider the following extract from a C program: int \( i \); int \( j=3 \); int \( \mathrm{A}[16] \); for \( (i=0 ; i<16 ;++i)\{ \) \( A[i]=1 * 16+j \) 3 Apply the strength reduction optimisation to this program. How many additions and multiplications now occur in total, excluding the increment to \( i \) in the for loop? A. 16 additions and 1 multiplication B. 32 additions and 1 multiplication C. 16 additions and 0 multiplications D. 32 additions and 0 multiplications E. 16 additions and 16 multiplications


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe