![]() |
![]() |
![]() |
![]() |
![]() |
|
If you want to skip over material that would otherwise be read by a
scanf call, you add an asterisk to the specification:
char input_buffer[100];
scanf ("%*s%*s%s", input_buffer);
printf ("The author's surname is %s.\n", input_buffer);
--- Data ---
Patrick Henry Winston
--- Result ---
The author's surname is Winston.