hello,
is there any way to call a specific variable from a function ?
see the following program.
float abc(void);
float main(void)
{
float a,b,y,z;
a=abc();
b=
printf ("enter value for z");
scanf ("%f",&z);
y=(a-(a*y))/(b*z);
printf ("%f",y);
}
float abc(void)
{
float x,p;
scanf ("%f",&x);
p=x*x;
return(p);
}
in this program i want to assign the value of b
as same as value of x
, ( the value of x that is assigned in line 16 should be equal to b at line 6)
how can i call the value of x
from the function ?