![]() |
![]() |
![]() |
![]() |
![]() |
|
The scanf function returns a value:
scanf is the number of read specifications
handled successfully. This value is 0 if no read specifications
are handled successfully.
scanf reaches the end of a file before its work is complete,
it returns the value of the macro EOF, which is -1 in most
implementations.