KNOW:
BE ABLE TO:
Sample Quiz Questions:
The function named Volume uses a char called shape and two floats called dimension1 and dimension2 to determine the volume of a geometric shape. It is assumed that upon entry to the function, the value of shape is either 'C', 'Y', or 'T' (for cone, cylinder, or torus). It is also assumed that the values of dimension1 and dimension2 are greater than 0.0.
#include <stdio.h> void changeVars (int x, int y); int main() { int a=4, b=5; printf ("a = %d, b = %d\n", a, b); changeVars (a,b); printf ("a = %d, b = %d\n", a, b); return 0; } void changeVars (int x, int y) { x = 10; y = 20; printf ("x = %d, y = %d\n", x, y); return; }