Questions tagged as 'literal'

1
answer

What is the need to use the suffix "f" in a numeric constant in C?

Is it necessary to add f to a float value within the parameters of a if ? Example: if (a == 2.5f && a > 2.0f) {}     
asked by 28.08.2018 / 17:41
1
answer

What is the utility / reason for the existence of new Object ();

While studying a little more about objects, I came across things like new String , new Number , etc. I was curious, and I went to learn. I understood the operation, although I have my doubts about the usefulness of them, since my...
asked by 13.09.2018 / 20:09