Need help please

Resolved, thanks.
Last edited on
 
void convert(double *);  //prototype 

1
2
3
4
void convert(double *a)
{
	*a = *a * 2.54;
}

From line 13, it tells that measurement is passed by reference to the function and hence will be modified.
Line 15 prints the new value of measurment which hints that convert returns void
Topic archived. No new replies allowed.