scanf("%c");: ignore a character and often used to pass the line break character.
scanf("%c");
#include <cstdio> int main() { int a, b; scanf("%d %*d %d", &a, &b); // 123 456 789 printf("%d %d\n", a, b); // 123 789 return 0; }