When a is multiple characters and spaces, does fp pointer position skip spaces after fscanf (fp,”%d”,&a) call?

  c++, question

such as

Fp content: “how are you”;

fscanf (fp,"%d",&a);
 fscanf (fp,"%d",&b);

A output how
B output are?
Why is fscanf called the second time to skip spaces automatically?

Whitespace character: the function will read and ignore any whitespace characters encountered before the next non-whitespace character (whitespace char acters include spaces, newline and tab characters -- see isspace). A single whitespace in the format string validates any quantity of whitespace characters extracted from the stream (including none).
http://www.cplusplus.com/refe …