#include #include using namespace std; int main() { //The left - is executed first. //because - has left-to-right associativity. cout << 1 - 2 - 3 << "\n"; //Outputs -4. int i {10}; int j {20}; int k {30}; cout << i; //The left << is executed first //because << has left-to-right associativity. cout << i << "\n"; cout << i << " " << j << "\n"; cout << i << " " << j << " " << k << "\n"; cin >> i; //The left >> is executed first //because >> has left-to-right associativity. cin >> i >> j; cin >> i >> j >> k; i = 40; //The right = is executed first //because = has right-to-left associativity. j = i = 40; //Put 40 into i and then into j. k = j = i = 50; //Put 50 into i and then into j and then into k. return EXIT_SUCCESS; }