78 452
Assignments Done
Successfully Done
In September 2019

Answer to Question #542 in C++ for Molly

Question #542
How to return two values from the function?
Expert's answer
Operator return can return only one value. If you want to return two, they should be packed into a single object, for example std::pair type. Or you can use variables with the result saved by reference.

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions