Question about Scanf options | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Question about Scanf options

What is the difference between scanf("%*f") and not writing it at all? and when do we use each one of them ? Thank you

30th May 2019, 11:50 PM
Hajer
1 Answer
0
This means that there is a float in your input stream but you do not care about it in your program. It can be useful to handle files of predefined format in which all data is not useful or when you use the same file for multiple programs and all of them do not need the same information
24th Jul 2019, 9:16 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar