Question: Write a C function named change () that accepts a single-precision number and the addresses of the integer variables named quarters, dimes, nickles and pennies.
Write a C function named change () that accepts a single-precision number and the addresses of the integer variables named quarters, dimes, nickles and pennies. The function should determine the number of quarters, dimes, nickels and pennies in the number passed to it and write these values directly into the respective variables declared in its calling function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
