Just for two integers, another option would be to provide references to the two:
bool funct(int& x, int& y) {
...
}
Then you call the function like so:
int x, y;
if(funct(x, y)) {
printf("The two values returned: %d and %d", x, y);
}
This allows for you to return whether the function succeeded as well. Both methods put forward in this thread will work.