If my function prototype is:
and my main function has the function(with the variables declared as doubles):
void ltb_calculation(double deduction, double *ltb, double *gross_pay);
and my function is:
ltb_calculation(deduction, *ltb, *gross_pay);
WHY do i get these error messages saying: "Function argument assignment between types "double*" and "double" is not allowed." ???
void ltb_calculation(double deduction, double *ltb, double *gross_pay)
if (( *gross_pay / 100) > 0)
*ltb= *gross_pay / 100;
if (*ltb > 50)
*ltb == 50;
deduction= *ltb * 2;
*gross_pay= *gross_pay - deduction;
I have a LOT of these messages as i did the same thing for each function. Some one help?