C has data types, so if you add an int to a float, for example:
int i = 1; float f = 2.5; float r = i + f; The C compiler will know that it should generate machine instructions that adds an int to a float because the C compiler can see that i is an int and f is a float.
But there is no data types in the B programming language, so if we did the following (not sure if this is a correct syntax):
auto i = 1; auto f = 2.5; auto r = i + f; How would the B compiler know that it should generate machine instructions that adds an int to a float?
floatliterals are supported.