What does it mean !? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 23

What does it mean !?

what is the meaning of "f" letter in the end of "scanf" or "printf" ? (it was occupy my mind since i seen first timešŸ˜)

3rd Jun 2018, 5:35 PM
AliRą«Æza
AliRą«Æza - avatar
6 Respostas
+ 26
AliRą«Æza The f at the end of functions like printf and scanf stands for 'format'. Thus printf is FORMATTED printing, meaning that you can use things like %d and %s in it. In math functions a suffix of f usually means float. https://stackoverflow.com/questions/27949512/what-does-f-stand-for-in-c-standard-library-function-names Hope this helps! ā˜ŗ
3rd Jun 2018, 6:34 PM
Andre Daniel
Andre Daniel - avatar
+ 20
Andre Daniel yes, Thank you
3rd Jun 2018, 6:36 PM
AliRą«Æza
AliRą«Æza - avatar
+ 3
Wow, thanks. Good to know.
4th Jun 2018, 10:57 AM
Hejo
Hejo - avatar
+ 3
I thought f was for function, thanks the "Hot Today" section :D
4th Jun 2018, 4:28 PM
Lyokolux
Lyokolux - avatar
+ 3
formatting
6th Jun 2018, 1:31 AM
Amolo Joseph
Amolo Joseph - avatar
+ 2
It means format.. Which helps you to add the %d, %f etc
5th Jun 2018, 4:39 AM
Peter Muriithi
Peter Muriithi - avatar