When I input 1/2 , the printf will be 1 and 2. ( Correct )
When I input 1 / 2, the printf will be 1 and 112.
Why ? Doesn't scanf ignore whitespace characters ?
Thanks.
Code:int main(void) { int a,b; printf("Enter 2 integers:"); scanf("%d/%d", &a, &b); printf("This are what you entered: %d and %d",a,b); return 0; }