ProgrammingHard

printf("%lld", (3LL * 1000000007 + 5) % 1000000007); What is printed?

  1. A. 3
  2. B. 5
  3. C. 1000000007
  4. D. 0

Correct answer: B. 5

3 x (10^9 + 7) is a multiple of the modulus, so only the 5 remains.

More C Programming questions

Exams that ask this topic