Evaluate the following expression according to operator precedence used in C. 10-3%8+6/4
Answers
Answered by
5
6/4 will be evaluated first,
3%8 next,
remainder of 3%8 + quotient of 6/4
then 10 - the sum of the others
10-3%8+1.5
10-2+1.5
10-3.5
6.5
3%8 next,
remainder of 3%8 + quotient of 6/4
then 10 - the sum of the others
10-3%8+1.5
10-2+1.5
10-3.5
6.5
Similar questions
Social Sciences,
8 months ago
French,
8 months ago