This sample program in C demonstrates the concept of passing a double value to a function as parameter. The program accepts a number in feet and converts the feet into meters by using a conversion function.
double feet_to_meter(double f);
printf("Enter feet: ");
printf("Meters: %f", feet_to_meter(feet));
double feet_to_meter(double f)
return f / 3.28;