Function Error
I tried to make a basic function that adds three numbers and adds them together but the sum always seems to be 1, can someone help me fi
Code:
#include <iostream>
using namespace std;
int addnumbers(int a, int b, int c)
{
return a+b+c;
}
int main()
{
int e,f,g;
cin >> e;
cin >> f;
cin >> g;
addnumbers(e,f,g);
cout << addnumbers << endl;
return 0;
}

