ProgrammingVery hard

For n = 10^5 cells in a 1D array viewed as a 316 x 317 grid, what is the total cell count?

  1. A. 100172
  2. B. 100000
  3. C. 100489
  4. D. 99999

Correct answer: A. 100172

316 x 317 = 100172, which is more than n, so the trailing cells must be unused.

More C Programming questions

Exams that ask this topic