Precedence | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Precedence

Cout << 1000/100%7*2 According to me, it should be 250 but Sololearn shows 6.

14th Sep 2023, 11:01 AM
RAJIV KUMAR KULIYA
1 Answer
+ 4
all used operators have the same level of precedence, so the computation goes from left to right.
14th Sep 2023, 11:13 AM
Lisa
Lisa - avatar