+ 1

Is there any meaning of 'f' in printf()?

Why we can't use print() instead printf()?

25th Jan 2019, 12:57 PM
ocioso
ocioso - avatar
1 Resposta
+ 6
I always thought that the f stands for 'formatted' or something: With printf you use 'format specifiers' like %d, %f and so on to position data in your string in a format you can specify.
25th Jan 2019, 1:18 PM
HonFu
HonFu - avatar