Below is the the assignment. Now I wrote some code I thought would work, but recieving so many errors that I can't understand, I reduced the code to just find the amount of quarters needed. Once I can clear that up, I should able to finalize the assignment. I think I am not adressing quarters properly. I have searched the forums and read the text required for the class and other tuturiols.

1. Write a C function named change() that accepts a floating point number of total coins 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 total coins number passed to it and write these values directly into the respective variables declared in its calling function using pointers.

Call the function change() from main() three times and print out the contents of the variables quarters, dimes, nickels, and pennies after each function return.

First Call--pass in the total value $1.88 and on return print the contents of the variables.

Second Call--pass in the total value .32 and on return print the contents of the variables.

Third Call--ask for a total value input from the keyboard and on return print the contents of the variables.

Output should look like:
TOTAL VALUE ENTERED: 1.88
7 quarters
1 dime
0 nickels
3 pennies

and not:
TOTAL VALUE ENTERED: 1.88
7 quarters
18 dimes
37 nickels
188 pennies

Code:
#include <stdio.h>
int change (float, int*);  /* function prototype */
int main()
{
	int *quarters;
	float total;
	
        total = 1.88;
        
        change(total, quarters);
        
        printf("TOTAL VALUE ENTERED: $%6.2f\n", total);
        printf("%d quarters", quarters);
        
   
    return 0;
}
int change(float total, int *quarters)
{		 
        if( total >= 0.25 )
        	*quarters = (total/0.25);
        	
	return;
}
Here is the window pop-up error I get.
Run-Time Check Failure #3 - The variable 'quarters' is being used without being initialized.