Answer to Question #314121 in C++ for manish

Question #314121

Give a C++ program to demonstrate the working of friend function which measure distance in meters and return the same back.


1
Expert's answer
2022-03-18T15:32:39-0400

Here is program:

void func(int m)
{
	cout << m << endl;
}
int main()
{
	int meters;
	cin >> meters;
	func(meters);
}

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog