There is sometimes a difference between what someone intended and what everyone else understands it to mean. If we can't ask the author, we might never be able to know the former, but we can always know the latter. Hence, $$3 - 4 + 1 = 0$$ is what almost everyone understands since there are no parentheses to override normal operator precedence and left-to-right associativity. If the author instead meant $$3 - (4 + 1) = -2,$$ we can only hope that he remembers to add the parentheses, but we probably shouldn't assume that he intended to, unless there is something in the context to indicate this.
Also, if I have 4 apples and I add 1 more apple, then I have 5 apples, but if I eat 3 apples, then I have 2 left.
This would be $$4 + 1 - 3 = 2.$$ Now suppose that a friend gives you two dozen apples. $$4 + 1 - 3 + 2 \times 12 = 26$$ And then you give another friend three half dozen apples. $$4 + 1 - 3 + 2 \times 12 - \frac{3}{2} \times 12 = 8$$
If you're using Windows 10 or Mac OS X, I want you to open up your operating system calculator. From your Web browser, copy 5 - 7 * 2 and paste it into the calculator (don't worry about spaces, they'll be ignored). The answer should be -9, not -4. Now try 3 - 4 + 1, the answer should be 0.
Also go to Wolfram Alpha. You won't even have to press Enter for the "preview" to show you the answer. In general, as long as you don't invoke imaginary numbers, the preview should work.
3+(−4)+1=0– Patrioticcow Sep 29 '18 at 22:47