Some C Help please!!
Ok i have this problem
double answer= 4-2.7*(5 % (int)5.2);
My questions is what role does % play, and also what role does int play in the brackets.
I get confused, since this is seen as a double. But then you have an int
I know the answer is 4.000000
but how and most importantly why?
Any help greatly appreciated.
|