Multiple choice

What is the value of 14%3+7%2 in C progamming language (where two operators are used; first is modulus operator and the second is addition operator)?

  1. 3

  2. 7.6

  3. 7.5

  4. 8.1

  5. 8

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the correct answer because % operator has high priority than + operator. So when it executes, the answer will be 3.