Chapter 1: Problem 10
What (if anything) is different about the behavior of the following two functions \(f\) and \(g\) that increment a variable and print its value? void \(f(\text { int } x)\) \(\\{\text { std::cout }<<++x ;\\}\) void \(g(\text { int } \& x)\) \(\\{\text { std: } c \text { out }<<++x ;\\}\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.