M
0
Take a look at this seemingly innocent sample program called add.cpp:
You would expect this program to produce the result:
The sum of 3 and 4 is: 7But in fact, it doesn
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include <iostream> int main() { using namespace std; cout << "The sum of 3 and 4 is: " << add(3, 4) << endl; return 0; } int add(int x, int y) { return x + y; } |
You would expect this program to produce the result:
The sum of 3 and 4 is: 7But in fact, it doesn