-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
  • 204,454
  • 14
  • 159
  • 270

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
  • 1,011
  • 1
  • 10
  • 21