rizalafande
Junior Member level 2
Based on C codings below, how can i return 3 output values to be passed to other functions..
==========
float test1 (float x)
{
float a,b,c;
a = x + x;
b = x * x;
c = (x / x) - x;
return a,b,c; /* when using this style, it will only return the result of c but not together with a and b */
}
===========
==========
float test1 (float x)
{
float a,b,c;
a = x + x;
b = x * x;
c = (x / x) - x;
return a,b,c; /* when using this style, it will only return the result of c but not together with a and b */
}
===========