(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 ;++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