why it is not accepting scanf value | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why it is not accepting scanf value

8th May 2020, 2:37 PM
Gongalla Suma
Gongalla Suma - avatar
2 Answers
+ 3
Where is the code so we can know what you are talking about?
8th May 2020, 2:39 PM
Abhay
Abhay - avatar
+ 1
Either it is a syntax error or invalid input. Based on what you exhibit in the question it is a syntax error. The scanf statement shown here is missing its parentheses, format specifier, variable argument, and terminating semicolon. If it still causes an error after those are in place and input is valid, then it is a mismatched data type between format specifier and variable argument.
8th May 2020, 11:23 PM
Brian
Brian - avatar