-3

I am new in C programming language and I have a question related to a variable:

float a=12.34f;

What does "f" stand for? I tried to see what happens if I remove the letter, but I couldn't find anything. The output is the same.

R Sahu
  • 200,579
  • 13
  • 144
  • 260

1 Answers1

1

So that it will be interpret as float not double by the compiler.

See here: Suffix of "f" on float value?

Community
  • 1
  • 1
MCG
  • 973
  • 1
  • 9
  • 21