I need to pass 3 varibles from main to a function, then do some calculation, after that the function will return another 2 varibles back to main, then the main will continue to use the new varible to do difference calculation.
example:
main()
{
float a=5;
float b=6;
float c=7;
function (a,b,c);
;
p= e +2;
;
}
function (a,b,c)
{
d=a+c;
e=b+b;
}
my problem is i can't bring the d & e value back to continue the main calculation, if possible please guide me the structure to develop the program, what kind of declaration and statement need to do? i try with array and pointer still not able.