Answer to Question #38297 in C++ for Keshav Kumar
write a function prototype (in C++) for a function which accepts two integers as parameters and returns their difference.
1
2014-01-10T08:33:11-0500
#include <iostream>
using namespace std;
int diff(int, int); // prototype
int main()
{
cout << diff(5, 2);
cin.get(); cin.get();
return 0;
}
int diff(int a, int b) // function
{
return a - b;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
Thank u sir...... It's very helpful for me...
Leave a comment