You cannot 'return' multiple values, but you can instead pass pointers to the variables to your function. e.g.


void
f(int *x, int *y)
{
x = 1;
y = 2;
}
int