Write void computeStats(int a, int b, int& sum, int& product, int& diff) that calculates sum, product, and difference of two numbers. Use reference parameters for the three outputs.
Inside the function: sum = a + b; product = a * b; diff = a - b;. Call it with: int s, p, d; computeStats(10, 5, s, p, d);. After the call, s, p, and d hold the results. This pattern returns multiple values without creating a structure.
The reference parameters act as output channels. You'll see this style in older C++ code, though modern code often returns a struct instead.