60 397
Assignments Done
98,1%
Successfully Done
In April 2018

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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions