Please tell me where it goes wrong as the following C++ code gives
the error message:
**addem.cpp:5: error: too few arguments to function int addem(int, int)**
`#include <iostream>
using namespace std;
int addem(int, int);
int main()
{
int x=5;
int y=2;
int z;
z = addem(x+y);
cout << "The value of z: "<<z;
system("PAUSE");
return 0;
}
int addem(int a, int b){
int c;
c=a+b;
return c;
}'
Thank you
dellat 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.