+ 6
return is the keyword we use in functions to return a value back to where it was called from.
int sum(int a, int b)
{
return a + b;
}
int main()
{
cout << sum(5, 10);
}
Here we have a function called sum, which takes in two integers. When calling from main, we pass in the two integers, and the function returns the sum back to the place which it was called.



