11.3 Modify the preceding program in C11.2 so that the volume function handles a cube and
a sphere. Incorporate #defi ne statements that would enable the function to be invoked in the
following two ways:
fl oat radius, length, vol;
vol = volume(radius, SPHERE);
vol = volume(length, CUBE);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here