Consider the following code:
#include int main() { int i=3, j=4; scanf(\"%d c %d\",&i,&j); printf(\"%d %d\",i,j); retu
I think I would read the scanf result into different variables (i.e. not reuse i and j) as "%d%s%d". Then check the string you got from the %s and if it matches your requirements, use the other variables to overwrite i and j.
i
j
"%d%s%d"