Can "return" in C++ provide more than one variable?
I'm wondering how write a function that returns more than one variable. For example, if a function is calculating a value using a while loop; I want the output to be the value and the number of loops iterated. I thought of defining an array or using a pointer is that the recommend methodology? Or "return" can return more than one value?