Welcome to Mobilarian Forum - Official Symbianize forum.

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

1.7

M 0

marckos

Abecedarian
Member
Access
Joined
Jun 25, 2014
Messages
195
Reaction score
40
Points
18
grants
₲9,175
11 years of service
Take a look at this seemingly innocent sample program called add.cpp:
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
 
Top Bottom