scanf a character in c code example Example 1: how make a character in c scanf scanf(" %c", &c); Example 2: scanf c scanf("%d", &b);