I was asked if what is the basis of MDAS rule. (multiplication, division, addition, subtraction). Will these operations be followed at all times, or can it be changed in some cases?
It equally can be DMAS, DMSA and MDAS. The point is multiplication and division always have higher precedence over addition and subtraction unless there are parantheses. Evaluating a subtraction before or after an addition doesn't change the value of the result. Same thing for multiplication and division.