2.7 — Forward declarations and definitions
Take a look at this seemingly innocent sample program: #include <iostream> int main() { std::cout << “The sum of 3 and 4 is: ” << add(3, 4) << ‘\n’; return 0; } int add(int x, int y) { return x + y; } You would expect this program to produce …