I know that these type of questions are answered many times. But those answers couldn't clear my doubt. My question is what is the problem in writing
float x = 3.141f;
as just
float x = 3.141;
I know that without the suffix 'f' the literal will be taken as a double type.
Wouldn't the compiler demote it to a float type?
Are there any issues with such demotion?
Isn't second code same as that of the first one?
Is there any difference between these two code lines while running the program?