How can i rewrite the following code correcting all problems found
void calculatevalues (const int &a, float *b, int &c)
{
d = 20.4;
if (*a =0)
*a += 1
c = a +d;
else
b= c/d ;
c= a- b +d;
}
Hint if a =4, b =0.0 and c=5 when this function is called, their values when this fucntion returns should be a=4, b=0.25 and c= 24.15
void calculatevalues (const int &a, float *b, int &c)
{
d = 20.4;
if (*a =0)
*a += 1
c = a +d;
else
b= c/d ;
c= a- b +d;
}
Hint if a =4, b =0.0 and c=5 when this function is called, their values when this fucntion returns should be a=4, b=0.25 and c= 24.15
Comment