+ 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 Réponses
+ 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