Suppose you need to write a function that calculates the volume of rectangular boxes. Which of the following is the best choice for the declaration of this function?
Avoid volume (int a)
Bdouble volume (double w, double h, double l)
Cvoid volume (double w, double h, double l)
Ddouble volume (double w)
Avoid volume (int a)
Bdouble volume (double w, double h, double l)
Cvoid volume (double w, double h, double l)
Ddouble volume (double w)