Precedence | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 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