C
Clifford Stern
In a function that returns two values, how do you read them? Consider
the following function:
int addsub(int x,int y)
{int a,b;
a=x+y;
b=x-y;
return(a,b);}
trying to read the results, for example by g,h=addsub(m,k) only gets the
second value correctly. What is the procedure?
the following function:
int addsub(int x,int y)
{int a,b;
a=x+y;
b=x-y;
return(a,b);}
trying to read the results, for example by g,h=addsub(m,k) only gets the
second value correctly. What is the procedure?