ProgrammingHard

How many scalar multiplications does the naive method use for a 3 x 4 times 4 x 2 product?

  1. A. 6
  2. B. 12
  3. C. 24
  4. D. 8

Correct answer: C. 24

The result has 3 x 2 = 6 cells, and each cell needs 4 multiplications, so 24 in total.

More C Programming questions

Exams that ask this topic