I am running a program in C that takes input from the stdin . I did this
The user is able to enter more than 2 characters into input even though the size of the array is 2 .
What is wrong with scanf? I want to be able to restrict the number of characters only to 2 .
Thank You .