#include #include using namespace std; int main() { //The + and * operators are both touching the same operand (2). //Which operator gets to sink its teeth into the 2 first? //Outputs 7 because * has higher precedence than +. cout << 1 + 2 * 3 << "\n"; //Force the + to execute before the *. Outputs 9. cout << (1 + 2) * 3 << "\n"; //The negative and minus operators are both touching the same operand (2) //Which operator gets to sink its teeth into the 2 first? //Outputs -5 because negative has higher precedence than minus. cout << -2 - 3 << "\n"; //Force the minus to execute before the -. Outputs 1. cout << -(2 - 3) << "\n"; return EXIT_SUCCESS; }