The code below is a program that sequentially stores values entered using a bidirectional list.
This code allows you to enter it, but -10000 does not leave for .What is the cause?
Please let me know if there are any other mistakes.
#include
scanf
return value is
Number of successfully substituted receive arguments (a match failure may result in zero if the match fails before the first receive argument is substituted), or EOF if the input failure occurs before the first receive argument is substituted.
Therefore, -10000
is never returned.
© 2024 OneMinuteCode. All rights reserved.