Give a C++ program to demonstrate the working of friend function which measure distance in meters and return the same back.
Here is program:
void func(int m) { cout << m << endl; } int main() { int meters; cin >> meters; func(meters); }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment