funciones c++ code example
Example 1: funcion c++
int main()
{
int i = sum(10, 32);
int j = sum(i, 66);
cout << "The value of j is" << j << endl; // 108
}
Example 2: funcion c++
int sum(int a, int b)
{
return a + b;
}
int main()
{
int i = sum(10, 32);
int j = sum(i, 66);
cout << "The value of j is" << j << endl; // 108
}
int sum(int a, int b)
{
return a + b;
}