Slide 57 of 97
Notes:
Here we see our sum of products example written in C.
The program is dotP and we're calling it on *m and *n pointers, which are short values, or 16-bit values. We also are passing an account of the number of times we're going to do the sum of products.
The loop is written as: for I equals zero and I less than count, perform the product M[I] times N[I], then sum that product with the previous product, until count equals to zero, then return the sum.