I am currently studying C programming as part of my curriculum. I'm over half the way through the quarter and I have an A in the class, but I've hit a stone wall with this week's homework. This is what I have to do:
Write a C function named change() that accepts a single-precision number and the addresses of the integer variables named quarters, dimes, nickels, 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.
I am not asking for people to make this for me, I only ask for help in understanding it, at this point I don't even know where to begin.



LinkBack URL
About LinkBacks


