No, this isn't possible in C++ or any other programming language that I know of.
As another user who answered your question said, only the first return
statement will be executed. Depending entirely on the compiler, it might give you an error or warning that you have two return
functions in one defined scope, there is no syntax error here.
It is possible to return two or more values in C++ by placing each variable into a vector and returning it, as documented in this question.
A return
returns the value assigned to it and exits the function.
In other programming languages such as Lua
a return variable1, variable2;
can be used.