How to return two values from the function?
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!
Learn more about our help with Assignments:
C++