10.9 — Type deduction for functions
Consider the following program: int add(int x, int y) { return x + y; } When this function is compiled, the compiler will determine that x + y evaluates to an int, then ensure that type of the return value matches the declared return type of the function (or that …