I stuck on understanding of one of my homework question... would appreciate any help.

# include <stdio.h >

int main ()

{

printf ("3/4 = % f \n " , 3/4);

printf ("3.0/4=% f \n " , 3.0/4);

printf ("1+2/3+0.4=% f \n " , 1+2/3+0.4);

}

That is the result:

-So in the first line I divided two integers, but I

**float**ed them by

**%f**, did not I? Why I get zero with decimal point?

-In the second line it is 3.0, which is a float divided by 4, which is integer, outcome is float... that looks ok for me, because whenever you do operation with different type of values an outcome going to be stored in the type of value, which had the biggest amount of memory reserved for its storage.

-in 3rd line there are no brackets therefore all sequences of operations goes from left to right, right ? Therefore we get 1,4 and not 2.067. There rule from second example regarding float is applied here as well.

Thank you in advance.