Exercise 01 Count Instructions
User Manual:
Open the PDF directly: View PDF
.
Page Count: 1

Jesus Otteson
Exercise 01: Count number of Instructions
CSIS-2420
int sum = 0;
for (int i = 0; i < N; i++)
{ sum += a[i];
}
operation
frequency
variable declaration
2
assignment statement
3
less than compare
N
array access
N
increment
N