L
LJ
K&R says that the scanf format string may contain ordinary characters,
which are expected to match the next non-white space character of the
input stream.
However when I am reading the date given as 25 /
12 / 1988 using scanf( "%d/%d/%d", &day, &month,
&year ); it is only reading the day. Why is it not reading the month
and year??
which are expected to match the next non-white space character of the
input stream.
However when I am reading the date given as 25 /
12 / 1988 using scanf( "%d/%d/%d", &day, &month,
&year ); it is only reading the day. Why is it not reading the month
and year??