Can anyone tell me the difference between:


Code:
float answer = 3.0f;
Code:
float answer = (float)3.0;
I understand if you have a variable you can't append an "f" on it, you would have to cast it. Is the second one bad coding or not recommended? Will the compiler do anything different for each one? I always thought the first was sort of shorthand for the second, but I wasn't sure. The second one is called a "cast," but what is the first one called? Thanks!