Consider the following code:
#include int main() { int i=3, j=4; scanf(\"%d c %d\",&i,&j); printf(\"%d %d\",i,j); retu
Force a string parsing first :
char a[100], b[100]; scanf("%99s c %99s", a, b);
Then use sscanf() to convert the strings to int.