I'm following this tutorial: https://www.learncpp.com/cpp-tutorial/basic-debugging-tactics/
The output at the end of section Debugging tactic #2: Validating your code flow is supposed to be:
main() called
getValue() called
4
but in CLion I am seeing:
4main() called
getValue() called
Similarly, in section Debugging tactic #3: Printing values the output should be:
Enter a number: 4
main::x = 4
Enter a number: 3
main::y = 3
4 + 3
main::z = 9
The answer is: 9
I'm seeing:
Enter a number: 4
Enter a number: main::x = 4
3
main::y = 3
main::z = 9
4 + 3
The answer is: 9