//space before a format specifier (for example %c) will skip any number of whitespaces before it unless it is interrupted by a non whitespace character. //example below int a; char c; scanf("%d %c",&a,&b);