Where does the % operator lie in the order of arithmetic preference in c++??? | Sololearn: Learn to code for FREE!

+1

Where does the % operator lie in the order of arithmetic preference in c++???

2/11/2017 3:28:36 AM

Mohammed Mubin

2 Answers

New Answer

+28

/,*,% all have same preference. It depends on how they are arranged and which comes first. 31%2/3 - first % then / 31/2%3 - first / then % so it depends on the order of which comes first.

0

I don't know, I have never needed to use a remainder for anything.