Question: Someone decided to use the following C code as part of a benchmark to determine the performance of a computer including its memory. It has
Someone decided to use the following C code as part of a benchmark to determine the performance of a computer including its memory. It has two potential faults. What are they?
![for (i = 0; i < 100; i++) { * s+12345 } P = q x = 0.0; for (j = 0; j < 60000; j++) { X = x + A[j] * B [j]; }](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1705/7/4/0/74465ab89c80d2111705740743573.jpg)
for (i = 0; i < 100; i++) { * s+12345 } P = q x = 0.0; for (j = 0; j < 60000; j++) { X = x + A[j] * B[j]; }
Step by Step Solution
3.46 Rating (156 Votes )
There are 3 Steps involved in it
First note that the expression p qs 12345 is static ie it ... View full answer
Get step-by-step solutions from verified subject matter experts
