diff --git a/main.cpp b/main.cpp index 359256d..73ff9c6 100644 --- a/main.cpp +++ b/main.cpp @@ -11,6 +11,11 @@ int getValue() int main() { - std::cout << getValue() + (getValue() * getValue()); // a + (b * c) + int a{ getValue() }; + int b{ getValue() }; + int c{ getValue() }; + + std::cout << a + (b * c); // order of eval doesn't matter now + return 0; }